# Editor Won't Load on Screen - Monaco Error

**URL:** <https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574>\
**Category:** General\
**Created:** [17 August 2022 21:07 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574 "2022-08-17T21:07:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dudleyjosh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dudleyjosh/32/105799_2.png) [@dudleyjosh](https://discourse.nodered.org/u/dudleyjosh)\
**Post date:** [17 August 2022 21:07 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574/1 "2022-08-17T21:07:22Z")

</div>

I just updated a Raspberry Pi to Node-RED v3.0.2 (from 2.2.0) and the editor won't load (just a blank screen as seen in the image below) and when I check the console I see the following error:

```auto
Uncaught ReferenceError: monaco is not defined
    at Object.init (red.min.js:18)
    at Object.init (red.min.js:18)
    at Object.init (red.min.js:18)
    at red.min.js:16
    at Object.success (red.min.js:16)
    at c (vendor.js:2)
    at Object.fireWith [as resolveWith] (vendor.js:2)
    at l (vendor.js:2)
    at XMLHttpRequest.<anonymous> (vendor.js:2)

```

 ![Screen Shot 2022-08-17 at 17.05.15](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/9239812a66ca8a498d8c6d27931f33be1513ed49.jpeg)

Any ideas as to what the issue is and how to resolve it?

---

<div class="post-metadata">

**Author:** ![dudleyjosh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dudleyjosh/32/105799_2.png) [@dudleyjosh](https://discourse.nodered.org/u/dudleyjosh)\
**Post date:** [17 August 2022 21:17 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574/2 "2022-08-17T21:17:14Z")

</div>

Never mind, I forgot to update the `settings.js` file.

[https://nodered.org/docs/user-guide/runtime/configuration#editor-themes](https://nodered.org/docs/user-guide/runtime/configuration#editor-themes)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [17 August 2022 21:37 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574/3 "2022-08-17T21:37:15Z")

</div>

Odd, I'm sure we fixed that so it shouldn't require anything in settings.js to just work.

What changes did you make to the settings file?

---

<div class="post-metadata">

**Author:** ![dudleyjosh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dudleyjosh/32/105799_2.png) [@dudleyjosh](https://discourse.nodered.org/u/dudleyjosh)\
**Post date:** [18 August 2022 01:14 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574/4 "2022-08-18T01:14:24Z")

</div>

Sorry for the confusion. I was at the machine when I discovered the error, then as I walked back to my desk I thought about the "editorTheme" section of the settings file so I ssh'd into the pi from my desk and modified the `settings.js` file and restarted Node-RED on the pi. Of course when I brought it up from my desk computer I was using a different browser and loading it remotely, duh.

I just logged into the pi using VNC viewer and you are correct... I still have the same error and the editor won't load.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 August 2022 09:09 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574/5 "2022-08-18T09:09:30Z")

</div>

You might want to force clear the servers browser's cache to see if that helps.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [18 August 2022 09:41 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574/6 "2022-08-18T09:41:23Z")

</div>

> [@dudleyjosh](#):
>
> thought about the "editorThemes" section of the settings file so I ssh'd into the pi from my desk and modified the `settings.js` file and restarted Node-RED on the pi.

Again, what changes did you make? What does the editorTheme section look like?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [18 August 2022 10:46 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574/7 "2022-08-18T10:46:32Z")

</div>

@dudleyjosh reading between the lines, I suspect the following...

1. update done on PI (locally, at the PI)
2. check using PI browser - **ERROR**
3. Walk to desk (remote computer)
  1. update settings via SSH
  2. test UI using desk computer browser

In which case, the issue is most likely:

- Chromium on the Pi is too old (around ver 74 is would be my guess)
  - same as this: [Blank webpage when starting Node-Red](https://discourse.nodered.org/t/blank-webpage-when-starting-node-red/66134)

- Chrome / FF / Safari on your remote desktop is NOT too old

---

<div class="post-metadata">

**Author:** ![dudleyjosh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dudleyjosh/32/105799_2.png) [@dudleyjosh](https://discourse.nodered.org/u/dudleyjosh)\
**Post date:** [18 August 2022 12:34 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574/8 "2022-08-18T12:34:28Z")

</div>

All I did was add...

```auto
codeEditor: {
        lib: "monaco"
}

```

...to the `editorTheme` section of the settings file, but it didn't actually help or change anything.

@Steve-Mcl was spot on with his response except my Pi is stuck at Chromium v72 even with the latest updates from `sudo apt update && sudo apt full-upgrade`.

Currently trying to figure out how to get Chromium updated on this Pi.

---

<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:** [17 October 2022 12:34 UTC](https://discourse.nodered.org/t/editor-wont-load-on-screen-monaco-error/66574/9 "2022-10-17T12:34:32Z")

</div>

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