Uncaught ReferenceError when deploy flow

Node-RED version: 2.2.2(Maintenance Release)

Installation steps:

  1. git clone GitHub - node-red/node-red: Low-code programming for event-driven applications
    cd node-red
  2. npm install
  3. npm run build
  4. npm start

Problem:
After put a "debug" node into a new blank flow, then press the "Deploy" button, whole web page is stucked in a gray view and following messages are shown in DevTools console of Chrome:

JQMIGRATE: Migrate is installed, version 3.3.0
Uncaught ReferenceError: hasUnusedConfig is not defined
at Object. (red.min.js?v=2.2.2:18:112007)
at c (vendor.js?v=2.2.2:2:28294)
at Object.fireWith [as resolveWith] (vendor.js?v=2.2.2:2:29039)
at l (vendor.js?v=2.2.2:2:79800)
at XMLHttpRequest. (vendor.js?v=2.2.2:2:82254)

Is this a bug ? Or what should I do to fix this?

Thanks a lot~~

Is there a reason you are cloning the code rather than installing a stable release from npm?

You are right , installing Node-Red by:

npm install -g --unsafe-perm node-red
would fix this problem.

Thanks~ļ¼

PS: It still might be a tiny bug in master branch of github repo ~

Indeed - will need to look at that. Just wanted to make sure we got you running if you didn't really need to be running from git.

1 Like

@jinx - this issue is now resolved.

Hitachi encountered the same thing and raised a pull request to fix it.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.