Code Monkey home page Code Monkey logo

Comments (11)

vexter0944 avatar vexter0944 commented on May 29, 2024 2

The only way I've been able to deal with this was to use a Docker container that someone else created who ran into the same thing. marthoc/node-red is the name of the Docker image. Otherwise, I'd assume it would involve the newer Node.js. The place I picked up this bit of info was here: https://community.home-assistant.io/t/my-docker-stack/43548/113 - the user was marthocoo - hope this helps!

from node-red-contrib-home-assistant.

kabturek avatar kabturek commented on May 29, 2024 2

https://hub.docker.com/r/nodered/node-red-docker/ docker image has new tags with upgraded node:
use nodered/node-red-docker:v8 (there is also rpi-v8 for those on rpi)

from node-red-contrib-home-assistant.

walthowd avatar walthowd commented on May 29, 2024 1

@vexter0944 It's all pretty well documented here already:

#38

from node-red-contrib-home-assistant.

vexter0944 avatar vexter0944 commented on May 29, 2024

As another side note - installed node-red on an Ubuntu vm - brand new build - nothing else installed - when I installed the HASS node - this is what shows up in the error log -

7 Mar 13:29:37 - [info] Creating new flow file
7 Mar 13:29:37 - [info] Server now running at http://127.0.0.1:1880/
7 Mar 13:29:37 - [info] Starting flows
7 Mar 13:29:37 - [info] Started flows
7 Mar 13:30:03 - [info] Installing module: node-red-contrib-home-assistant, version: 0.3.0
7 Mar 13:31:25 - [info] Installed module: node-red-contrib-home-assistant
7 Mar 13:31:25 - [info] Added node types:
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:api-call-service : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:api-current-state : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:api-get-history : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:api-render-template : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:poll-state : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:server : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:server-events : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:server-state-changed : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
7 Mar 13:31:25 - [info] - node-red-contrib-home-assistant:trigger-state : SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

This does not appear to be Docker related so much as something to do with how this node was built and node-red.

from node-red-contrib-home-assistant.

vexter0944 avatar vexter0944 commented on May 29, 2024

Got some insight on this - The new 0.3.0 release of node-red-contrib-home-assistant is only compatible with Node.js in the LTS release series (currently 8.9.4). from a HASS user who ran into this to a point.

from node-red-contrib-home-assistant.

x99percent avatar x99percent commented on May 29, 2024

I've noticed this as well, which has left me using:

npm install [email protected]

Have you figured out a way to get 0.3.0 to install?

from node-red-contrib-home-assistant.

x99percent avatar x99percent commented on May 29, 2024

Unfortunately, I'm using the nodered/node-red-docker:rpi Docker image. I wonder if I could upgrade Node.js in that image...

from node-red-contrib-home-assistant.

vexter0944 avatar vexter0944 commented on May 29, 2024

It's a thought. I wish the author of this node would give us a little insight on this issue. I'm hoping the author hasn't stopped development on this node, it's starting to feel a little abandoned unfortunately.

from node-red-contrib-home-assistant.

vexter0944 avatar vexter0944 commented on May 29, 2024

Thanks for the heads up on that @walthowd - did not catch that - much appreciated!

from node-red-contrib-home-assistant.

oakbrad avatar oakbrad commented on May 29, 2024

@kabturek That solved it for me, thank you. Just switch to a new Docker and was wondering what was going on...

from node-red-contrib-home-assistant.

AYapejian avatar AYapejian commented on May 29, 2024

Thanks for fielding this guys

from node-red-contrib-home-assistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.