# Deprecation warnings

**URL:** https://discourse.nodered.org/t/deprecation-warnings/46822
**Category:** General
**Created:** [7 June 2021 15:34 UTC](https://discourse.nodered.org/t/deprecation-warnings/46822 "2021-06-07T15:34:33Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![NPT](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@NPT](https://discourse.nodered.org/u/NPT)
#### Post date: [7 June 2021 15:34 UTC](https://discourse.nodered.org/t/deprecation-warnings/46822/1 "2021-06-07T15:34:34Z")

</div>

I suddenly started receiving a warning every time I Deploy saying,

_“The workspace contains some nodes that are not properly configured:” and referring to a Dashboard stylesheet (ui\_template) which has the little red pyramid warning._

I have made no change to this node – it is just a CSS collection to generate rounded corners on Dashboard.

I decided to check for upgrades and now have v1.3.5 but no change.

At the command prompt I get 2 x DeprecationWarnings but I have absolutely no idea of what to fix and how, etc.

The Command window listed below gives the following output:

_C:\WINDOWS\system32\>node-red [Command prompt]_

_(node:2220) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users{username}\AppData\Roaming\npm\node\_modules\node-red\node\_modules@node-red\editor-client\package.json' of './lib/index.js'. Please either fix that or report it to the module author_

_(Use `node --trace-deprecation ...` to show where the warning was created)_

_7 Jun 16:13:35 - [info]_

_Welcome to Node-RED_  
_===================_  
_7 Jun 16:13:35 - [info] Node-RED version: v1.3.5_  
_7 Jun 16:13:35 - [info] Node.js version: v16.1.0_  
_7 Jun 16:13:35 - [info] Windows\_NT 10.0.18363 x64 LE_  
_7 Jun 16:13:36 - [info] Loading palette nodes_  
_7 Jun 16:13:37 - [info] Worldmap version 2.15.2_  
_7 Jun 16:13:37 - [info] Dashboard version 2.29.1 started at /ui_  
_7 Jun 16:13:37 - [info] Settings file : C:\Users{username}.node-red\settings.js_  
_7 Jun 16:13:37 - [info] Context store : 'default' [module=memory]_  
_7 Jun 16:13:37 - [info] User directory : \Users{username}.node-red_  
_7 Jun 16:13:37 - [warn] Projects disabled : editorTheme.projects.enabled=false_  
_7 Jun 16:13:37 - [info] Flows file : \Users{username}.node-red\flows\_WorkStationII.json_  
_(node:2220) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users{username}.node-red\node\_modules\node-red-dashboard\package.json' of 'none'. Please either fix that or report it to the module author_  
_7 Jun 16:13:37 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)_  
_7 Jun 16:13:37 - [warn]_

_---------------------------------------------------------------------_

_Your flow credentials file is encrypted using a system-generated key._  
_If the system-generated key is lost for any reason, your credentials_  
_file will not be recoverable, you will have to delete it and re-enter_  
_your credentials._

_You should set your own key using the 'credentialSecret' option in_  
_your settings file. Node-RED will then re-encrypt your credentials_  
_file using your chosen key the next time you deploy a change._

_---------------------------------------------------------------------_

_7 Jun 16:13:38 - [info] Starting flows_  
_7 Jun 16:13:38 - [info] [worldmap:7970815f.ac5ec] started at /worldmap_  
_7 Jun 16:13:38 - [info] Started flows_  
_7 Jun 16:13:38 - [info] [serialconfig:4dfd20a4.4fdc08] serial port COM7 opened at 9600 baud 8N1_

I must say that everything appears to be working on the Dashboard.

Any guidance will be greatly welcome!

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [7 June 2021 15:43 UTC](https://discourse.nodered.org/t/deprecation-warnings/46822/2 "2021-06-07T15:43:16Z")

</div>

Have you assigned the ui-control to a valid group and tab and redeployed?

---

<div class="post-metadata">

### Author: ![NPT](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@NPT](https://discourse.nodered.org/u/NPT)
#### Post date: [7 June 2021 16:05 UTC](https://discourse.nodered.org/t/deprecation-warnings/46822/3 "2021-06-07T16:05:15Z")

</div>

Many thanks for your kind assistance.

Template Properties originally said;

Template Type : _Added to site section_  
Name : _Dashboard stylesheet_

I then changed it to "Widget in group" and selected an operational group and deployed.

Brilliant! Both the red icon and the error warning disappeared upon deployment!

Checking the selected group, the CSS has an effect but not globally. I reverted to the original settings and all still seems to be fine with the CSS applied globally. I'm not sure this is good practice. Perhaps I should set a template for each Group?

I am still getting the start-up deprecation warnings x 2 and really don't know if they are serious or can be disregarded?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [7 June 2021 16:05 UTC](https://discourse.nodered.org/t/deprecation-warnings/46822/4 "2021-06-07T16:05:29Z")

</div>

> [@NPT](#):
>
> DeprecationWarning: Invalid 'main' field

You can ignore that one, that is because you are using nodejs 16, which causes this warning.

---

<div class="post-metadata">

### Author: ![NPT](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@NPT](https://discourse.nodered.org/u/NPT)
#### Post date: [7 June 2021 16:06 UTC](https://discourse.nodered.org/t/deprecation-warnings/46822/5 "2021-06-07T16:06:44Z")

</div>

Sincere thanks, Colin.

Phew!

---

<div class="post-metadata">

### Author: ![NPT](https://avatars.discourse-cdn.com/v4/letter/n/9de053/32.png) [@NPT](https://discourse.nodered.org/u/NPT)
#### Post date: [7 June 2021 16:11 UTC](https://discourse.nodered.org/t/deprecation-warnings/46822/6 "2021-06-07T16:11:16Z")

</div>

Apologies to anyone who stumbles across this - I made the error of asking 2 different questions within a single posting without realising they were unrelated. Very fortunately both were kindly answered.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [7 June 2021 16:36 UTC](https://discourse.nodered.org/t/deprecation-warnings/46822/7 "2021-06-07T16:36:13Z")

</div>

At the time you had no way of knowing they were unrelated.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [21 June 2021 16:36 UTC](https://discourse.nodered.org/t/deprecation-warnings/46822/8 "2021-06-21T16:36:29Z")

</div>

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