question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New theme option breaks Node-RED projects

See original GitHub issue

Problem/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

  1. Enable the projects feature in settings.js by setting editorTheme.projects to true:
module.exports = {
  ...
  editorTheme: {
    projects: {
      enabled: true
    }
  }
}
  1. Restart the add-on;
  2. 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bonanitechcommented, Apr 20, 2021

Pushing a fix in a few minutes.

0reactions
crnhcommented, Apr 22, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Projects - Node-RED
Introducing projects. Projects are a new way to manage your flow files. Rather than treat your flows as a simple pair of files,...
Read more >
Theme Plugins - developing node-red stream - YouTube
Developing Theme Plugins to make it easier to package and install custom themes in the editorBroadcasted live on Twitch -- Watch live at ......
Read more >
Collaboration and Version Control in Node-RED - YouTube
This week Sam and Julia will continue their discussion on the current state of Node-RED and new features brought by the 1.1.0 release....
Read more >
Finally a beautiful dark theme for Node-RED
Go to Supervisor · In the list of installed Add-ons, select NodeRED · Go to the Configuration tab · Change the value of...
Read more >
Install Node-RED on Raspberry Pi - Random Nerd Tutorials
Configure Node-RED Settings. After installing, it is recommended to configure initial options and settings. Run the following command: node-red ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found