New theme option breaks Node-RED projects
See original GitHub issueProblem/Motivation
I am using the projects feature for version control in Node-RED. After updating the Node-RED add-on to version 9.0.0, my project did not load; instead, the flows in my old flows.json were loaded. Besides, the whole projects functionality was unavailable.
Expected behavior
After updating, the projects feature keeps functioning and the correct flow file is loaded.
Actual behavior
The projects feature is not enabled and instead of the project flows, the flows from flows.json are loaded.
Steps to reproduce
- Enable the projects feature in
settings.jsby settingeditorTheme.projectstotrue:
module.exports = {
...
editorTheme: {
projects: {
enabled: true
}
}
}
- Restart the add-on;
- The projects UI is not present.
Proposed changes
Previously, config.js added a property to config.editorTheme in order to set the theme:
config.editorTheme.page = {
css: "/opt/node_modules/@node-red-contrib-themes/midnight-red/theme.css",
};
Currently, config.editorTheme is overwritten, disabling any customization using settings.js:
config.editorTheme = {
theme: options.theme,
};
If the code above is changed to only set the theme property of config.editorTheme instead of overwriting it, this issue would be solved.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:7 (3 by maintainers)

Top Related StackOverflow Question
Pushing a fix in a few minutes.
You can check that yourself in the releases section of this repo. 9.0.0 is the newest, so no, the patch has not yet been released.