# Issues with Monaco editor? Node-red 5

**URL:** <https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253>\
**Category:** General\
**Tags:** editor\
**Created:** [11 June 2026 08:23 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253 "2026-06-11T08:23:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 June 2026 08:23 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/1 "2026-06-11T08:23:59Z")

</div>

After running the latest install script on a Pi I'm seeing a couple of issues editing function nodes.

1. Error triangle after editing a function node.

- Open a function node
- Click the arrow to open Monaco
- Make a trivial change such as inserting a space in a string
- Click Done, and Done
- The node shows an error triangle.
- To clear it, open the node again, click Done.

1. Just the first character typed is sometimes not inserted in the editor.  
I can't pin down exactly when this happens, but it's quite frequent. Not confined to a single key, so it's not grit in my keyboard.

Does anyone else see this behaviour?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [11 June 2026 08:36 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/2 "2026-06-11T08:36:58Z")

</div>

Um....

I'm seeing this happen to me now and then even on version 4.0.9

I'm saying this because I have been playing with `subflows` (yeah.....) and they have `function` nodes in them now and then.

I do a SMALL tweak and when done, the `DEPLOY` isn't active.

😕

_Maybe I didn't change anything, or accidentally pressed `CANEL` rather than `OK`._

🤷

So I do it again. All good.

It only happens _now and then_ and very (VERY) unpredictable, so I dismissed it as my mistake.  
But reading what you say: I'm now not sure.

Maybe it is more fundamental and not for 5.x only.

Hope I'm not crying wolf.  
But I have noticed it and so am mentioning t.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 June 2026 08:52 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/3 "2026-06-11T08:52:56Z")

</div>

Thanks for the feedback.

It's not identical though; I do see the Deploy marker as well as Error.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/4/84c3451cb1bc3b4c526309feb63379d77f88c997.png)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [11 June 2026 08:54 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/4 "2026-06-11T08:54:22Z")

</div>

Honestly I am not sure of the specifics.

As they happen so infrequently.  
But best of my memory, it is like I never edited the node.

---

<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:** [11 June 2026 09:00 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/5 "2026-06-11T09:00:50Z")

</div>

There is (and always has been) a small race condition if you close the edit dialog really quickly after making a change - monaco hasn't re-linted the code yet so may still claim there is (or isn't) an error present.

I wonder if that's related to what you're seeing.

> - Click the arrow to open Monaco

Do you mean you're opening the expanded editor?

If you slow down clicking done each time - give Monaco a chance to sort itself out - do you still see the error?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [11 June 2026 09:05 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/6 "2026-06-11T09:05:21Z")

</div>

Me?

Sorry, as stated, it really happens very rarely.  
And of late mostly when working on subflows.

I open the `function` node do a quick edit (maybe change a variable's name from `Show` to `show`)  
and exit.  
No `DEPLOY`.  
I repeat it and it then is active.

(OOPS)  
Sorry, I'm hijacking the thread.  
@jbudd posted and your reply was to the thread not me.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 June 2026 09:07 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/7 "2026-06-11T09:07:06Z")

</div>

> [@knolleary](#):
>
> Do you mean you're opening the expanded editor?

Yes, it only arises when I make a change in the expanded editor.

> [@knolleary](#):
>
> If you slow down clicking done each time - ...- do you still see the error?

Yes. Waited 5 seconds before clicking Done.

I just noticed this red serpentine in the unexpanded editor, ie after changing the string and clicking Done just once. But it's not confined to node.warn lines.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/14b8b8f72f6b6a9ad8e72cb9919efd1be332a035.png)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 June 2026 09:08 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/8 "2026-06-11T09:08:14Z")

</div>

> [@Trying\_to\_learn](#):
>
> your reply was to the thread not me.

Yes sorry, my bad habit.

---

<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:** [11 June 2026 09:11 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/9 "2026-06-11T09:11:34Z")

</div>

I can reproduce. Very strange; if I enter `node.error("hi")` in the expanded editor, it's fine. I then click done - and it shows as an error in the unexpanded editor.

But entering `node.error...` in the unexpanded editor manually is fine.

Definitely something fishy going on. FYI @Steve-Mcl

@jbudd could I trouble you to raise an issue?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 June 2026 09:18 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/10 "2026-06-11T09:18:02Z")

</div>

Looks like this was already reported yesterday.  
[https://github.com/node-red/node-red/issues/5796](https://github.com/node-red/node-red/issues/5796)

---

<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:** [11 June 2026 12:05 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/11 "2026-06-11T12:05:53Z")

</div>

Strange, I can re-create it on my dev instance which has lots of tabs and nodes. Not (yet anyway) reproduced it on a clean instance.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [3 July 2026 07:08 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/12 "2026-07-03T07:08:59Z")

</div>

Both of these seem to be fixed by Node-red 5.0.1

---

<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 July 2026 07:09 UTC](https://discourse.nodered.org/t/issues-with-monaco-editor-node-red-5/101253/13 "2026-07-17T07:09:34Z")

</div>

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