You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a node uses the .cjs file extension, node-red appears to try and load it (it shows up in the setting palette), but it is not available in the list of nodes:
Note that .cjs and .js appear to have been loaded (and .mjs fails with an ESM error, as expected):
However, only .js is available in the list:
Expected Behavior
Files with the .cjs file extension should behave exactly the same as ones with .js, i.e. load correctly and slow in the node list.
I suspect something in the loader is trying to load a .js file regardless of the node-red config in the package.json; but there are no visible error messages.
Current Behavior
If a node uses the
.cjs
file extension, node-red appears to try and load it (it shows up in the setting palette), but it is not available in the list of nodes:Example config:
Note that .cjs and .js appear to have been loaded (and .mjs fails with an ESM error, as expected):
However, only .js is available in the list:
Expected Behavior
Files with the .cjs file extension should behave exactly the same as ones with
.js
, i.e. load correctly and slow in the node list.I suspect something in the loader is trying to load a
.js
file regardless of the node-red config in the package.json; but there are no visible error messages.Steps To Reproduce
Repo with issue: https://github.com/Pezmc/node-red-test-node
Example flow
n/a
Environment
The text was updated successfully, but these errors were encountered: