Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[node-red-contrib-state/shared-state] Error: Cannot find module 'is-valid-var-name' #2

Closed
mdegat01 opened this issue Mar 21, 2020 · 3 comments

Comments

@mdegat01
Copy link

Just installed version 1.4 and now I see this error in my logs:

21 Mar 10:29:09 - [warn] [node-red-contrib-state/shared-state] Error: Cannot find module 'is-valid-var-name'
Require stack:
- /config/node-red/node_modules/node-red-contrib-state/lib/state.js
- /opt/node_modules/@node-red/registry/lib/loader.js
- /opt/node_modules/@node-red/registry/lib/index.js
- /opt/node_modules/@node-red/runtime/lib/nodes/index.js
- /opt/node_modules/@node-red/runtime/lib/index.js
- /opt/node_modules/node-red/lib/red.js
- /opt/node_modules/node-red/red.js

Afterwards it then will not deploy my flows due to this error:

21 Mar 10:29:09 - [info] Waiting for missing types to be registered:
21 Mar 10:29:09 - [info]  - shared-state

Everything had been working fine prior to update, 1.4 seems to have some issue that prevents it from loading correctly.

@portalzine
Copy link

npm install is-valid-var-name

.. should solve that for you!

@mdegat01
Copy link
Author

Yep, that did the trick. Thanks!

@lorenwest
Copy link
Owner

lorenwest commented Mar 22, 2020

Thank you for pointing out this bug. is-valid-var-name was improperly listed as a devDependency, and needed to be a dependency. Fixed and published today in 1.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants