Error with library on function node, is a bug?

Hello everyone and happy new year. I am using node red 2.1.4 and in the function node I have inserted the library moment in the setup tab, it works correctly but if I go back to the tab on message and I click on the button to enlarge the editor window it signals me moment as an error. At this point I have to go back to the standard size of the window and go again to the setup tab and click on the Done button, in this way the error disappears.
Is this a bug?
Thanks to those who will answer.
P.s. Cannot find name 'moment' error. (2304)

Can you share a screenshot of what you are seeing to help us understand what you mean?

This looks very much like a Monaco issue Nick.

Please confirm the code editor you are using.

Yes I confirm, I use Monaco editor, when I can I share a video of the issue

You can paste screenshots directly in the forum.

For videos, upload to YouTube and paste a link.

A video shouldn't be necessary - just take a couple screenshots that show the relevant things, such as the error.

Ok tomorrow I made a screenshot, I've found this issue on Monaco repo, it's seem like my trouble.
https://github.com/microsoft/monaco-editor/issues/2866

No, I don't think that is the issue since the module reference works when the editor is not maximised.

It is possible our implementation is not picking up the module when the editor is maximised.

When you create your screenshot could you please raise an issue on the node-red GitHub repository.

1 Like

I've open an issue on github as requested. https://github.com/node-red/node-red/issues/3319
Here are the screenshoots, the first when I open the function node, no error is reported, the second when I extend the editor reports the error, the third that I click on the done or cancel button in the resized editor continues to give an error. To remove the error I have to go to the setup tab.



1 Like

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