# Nodered 5.0 Editor fails open Function Tab

**URL:** https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248
**Category:** General
**Tags:** function-node, dashboard-2
**Created:** [10 June 2026 11:45 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248 "2026-06-10T11:45:06Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Hubertus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hubertus/32/10077_2.png) [@Hubertus](https://discourse.nodered.org/u/Hubertus)
#### Post date: [10 June 2026 11:45 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248/1 "2026-06-10T11:45:06Z")

</div>

Hello.  
when I reload Node-RED in the browser, I can edit a function node.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/e/8e461111cfb49432a2f488431d4a4155868afcb4.png)

If I close the node and want to edit it again—or any other function node—the editor doesn't appear.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/c/bcd4c22601f2f61d57f91f7d7bff85eaff12c9c3.png)

Only after reloading Node-RED in the browser can a single function node be edited once. Then I have to reload again. Tested with Chrome and Internet Explorer.

Best regards  
Hubertus

---

<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: [10 June 2026 12:00 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248/2 "2026-06-10T12:00:14Z")

</div>

Can you check your browsers dev tools console for errors and let us know please.

---

<div class="post-metadata">

### Author: ![Hubertus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hubertus/32/10077_2.png) [@Hubertus](https://discourse.nodered.org/u/Hubertus)
#### Post date: [10 June 2026 12:08 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248/3 "2026-06-10T12:08:53Z")

</div>

This appears after double-clicking the function node.  
Is that what you meant?

```auto
inject.js:101 [Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
l	@	inject.js:101
add	@	vendor.js?v=730435635d59:2
(anonymous)	@	vendor.js?v=730435635d59:3
(anonymous)	@	vendor.js?v=730435635d59:3
(anonymous)	@	vendor.js?v=730435635d59:2
each	@	vendor.js?v=730435635d59:2
each	@	vendor.js?v=730435635d59:2
Le	@	vendor.js?v=730435635d59:2
on	@	vendor.js?v=730435635d59:2
(anonymous)	@	vendor.js?v=730435635d59:8
each	@	vendor.js?v=730435635d59:2
_on	@	vendor.js?v=730435635d59:8
_create	@	vendor.js?v=730435635d59:8
(anonymous)	@	vendor.js?v=730435635d59:8
_createWidget	@	vendor.js?v=730435635d59:8
(anonymous)	@	vendor.js?v=730435635d59:8
(anonymous)	@	vendor.js?v=730435635d59:8
each	@	vendor.js?v=730435635d59:2
each	@	vendor.js?v=730435635d59:2
(anonymous)	@	vendor.js?v=730435635d59:8
oneditprepare	@	VM309:389
H	@	red.min.js?v=730435635d59:97
y	@	red.min.js?v=730435635d59:97
open	@	red.min.js?v=730435635d59:97
t	@	red.min.js?v=730435635d59:179
show	@	red.min.js?v=730435635d59:179
_	@	red.min.js?v=730435635d59:97
Ui	@	red.min.js?v=730435635d59:97
i	@	vendor.js?v=730435635d59:26
red.min.js?v=730435635d59:97 oneditprepare 5d19664d4281f23f function TypeError: Assignment to constant variable.
red.min.js?v=730435635d59:97 TypeError: Assignment to constant variable.
    at Object.L [as create] (red.min.js?v=730435635d59:171:11)
    at Object.B [as create] (red.min.js?v=730435635d59:98:2756)
    at Object.createEditor (red.min.js?v=730435635d59:97:252369)
    at buildEditor (<anonymous>:410:43)
    at Proxy.oneditprepare (<anonymous>:443:31)
    at H (red.min.js?v=730435635d59:97:225399)
    at y (red.min.js?v=730435635d59:97:226352)
    at Object.open (red.min.js?v=730435635d59:97:235561)
    at t (red.min.js?v=730435635d59:179:3187)
    at Object.show (red.min.js?v=730435635d59:179:4562)
red.min.js?v=730435635d59:97 oneditresize 5d19664d4281f23f function TypeError: Cannot read properties of undefined (reading 'resize')
vendor.js?v=730435635d59:26 [Violation] 'mouseup' handler took 166ms
5
[Violation] Forced reflow while executing JavaScript took <N>ms
[Violation] Forced reflow while executing JavaScript took 31ms
[Violation] Forced reflow while executing JavaScript took 45ms
[Violation] Forced reflow while executing JavaScript took 49ms
[Violation] Forced reflow while executing JavaScript took 30ms
[Violation] Forced reflow while executing JavaScript took 273ms
red.min.js?v=730435635d59:97 oneditresize 5d19664d4281f23f function TypeError: Cannot read properties of undefined (reading 'resize')
red.min.js?v=730435635d59:179 [Violation] 'setTimeout' handler took 83ms
red.min.js?v=730435635d59:97 oneditresize 5d19664d4281f23f function TypeError: Cannot read properties of undefined (reading 'resize')
red.min.js?v=730435635d59:16 [Violation] 'message' handler took 177ms
red.min.js?v=730435635d59:16 [Violation] 'message' handler took 581ms
﻿

```

---

<div class="post-metadata">

### Author: ![Hubertus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hubertus/32/10077_2.png) [@Hubertus](https://discourse.nodered.org/u/Hubertus)
#### Post date: [10 June 2026 13:06 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248/4 "2026-06-10T13:06:01Z")

</div>

Maybe that's another clue—when I change the editor from Monaco to Ace in the settings.js file, everything works fine.

But the coding competition is a lost cause—no way

---

<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: [10 June 2026 13:44 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248/5 "2026-06-10T13:44:59Z")

</div>

I am not seeing this. in my browser.

What browser (and version) are you using?

Regarding, the error, `red.min.js?v=730435635d59:97 TypeError: Assignment to constant variable.` can you click on this and capture the code above and below this - there may be a bug.

---

<div class="post-metadata">

### Author: ![Hubertus](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hubertus/32/10077_2.png) [@Hubertus](https://discourse.nodered.org/u/Hubertus)
#### Post date: [10 June 2026 14:26 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248/6 "2026-06-10T14:26:52Z")

</div>

First the console log:

```auto
TypeError: Assignment to constant variable.
    at Object.L [as create] (red.min.js:171:11)
    at Object.B [as create] (red.min.js:98:2756)
    at Object.createEditor (red.min.js:97:252369)
    at buildEditor (<anonymous>:410:43)
    at Proxy.oneditprepare (<anonymous>:443:31)
    at H (red.min.js:97:225399)
    at y (red.min.js:97:226352)
    at Object.open (red.min.js:97:235561)
    at t (red.min.js:179:3187)
    at Object.show (red.min.js:179:4562)
red.min.js?v=730435635d59:97 oneditresize 8627ce70dce21743 function TypeError: Cannot read properties of undefined (reading 'resize')
red.min.js?v=730435635d59:97 oneditresize 8627ce70dce21743 function TypeError: Cannot read properties of undefined (reading 'resize')
red.min.js?v=730435635d59:97 oneditresize 8627ce70dce21743 function TypeError: Cannot read properties of undefined (reading 'resize')
9red.min.js?v=730435635d59:97 oneditresize 8627ce70dce21743 function TypeError: Cannot read properties of undefined (reading 'resize')

```

see "undefined (reading resize)"

the code:

```auto
RED.editor.registerEditPane("editor-tab-properties", function(x) {
        return {
            label: RED._("editor-tab.properties"),
            name: RED._("editor-tab.properties"),
            iconClass: "fa fa-cog",
            create: function(k) {
                var b = x.type;
                x.type === "subflow" ? b = "subflow-template" : x.type.substring(0, 8) == "subflow:" && (b = "subflow");
                var t;
                x._def.set.module === "node-red" ? t = "node-red" : t = x._def.set.id;
                var g = "dialog-form";
                this.inputClass = "node-input",
                x._def.category === "config" && b !== "group" ? (this.inputClass = "node-config-input",
                g = "node-config-dialog-edit-form") : x.type === "subflow" && (this.inputClass = "subflow-input"),
                RED.editor.buildEditForm(k, g, b, t, x)
            },
            resize: function(k) {
                if (x && x._def.oneditresize)
                    try {
                        x._def.oneditresize.call(x, k)
                    } catch (b) {
                        console.log("oneditresize", x.id, x.type, b.toString())
                    }
            },
            close: function() {},
            apply: function(k) {
                var b, t;
                if (x._def.defaults) {
                    for (t in x._def.defaults)
                        if (x._def.defaults.hasOwnProperty(t)) {
                            var g = $("#" + this.inputClass + "-" + t);
                            if (g.attr("type") === "checkbox" ? b = g.prop("checked") : g.prop("nodeName") === "select" && g.attr("multiple") === "multiple" ? (b = g.val(),
                            b == null && (b = [])) : "format"in x._def.defaults[t] && x._def.defaults[t].format !== "" && g[0].nodeName === "DIV" ? b = g.text() : b = g.val(),
                            b != null) {
                                if (t === "outputs") {
                                    if (b.trim() === "")
                                        continue;
                                    if (isNaN(b)) {
       

```

My browsers to test this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/4/e415e799eb82f9353e4ec2fc4d4999c889416401.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c26646ee2b2bb33ecaae594d2fe3ce8e07e77439.png)

---

<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: [19 June 2026 08:22 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248/7 "2026-06-19T08:22:45Z")

</div>

For anyone following along: [Unable to edit function node when using monaco · Issue #5834 · node-red/node-red · GitHub](https://github.com/node-red/node-red/issues/5834#issuecomment-4749803208)

---

<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 September 2026 08:23 UTC](https://discourse.nodered.org/t/nodered-5-0-editor-fails-open-function-tab/101248/8 "2026-09-17T08:23:35Z")

</div>

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