Nodered 5.0 Editor fails open Function Tab

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

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

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

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

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

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



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

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.

First the console log:

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:

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: