node-red icon indicating copy to clipboard operation
node-red copied to clipboard

Error with library (moment) when I enlarge monaco editor

Open ThomasAndreini opened this issue 4 years ago • 2 comments

As reported on the forum when I extend the monaco editor window in the function node on node red 2.1.4 using the moment library I get the error "Cannot find name 'moment'. (2304)". I haven't had the opportunity to test other libraries but I don't think it depends on moment. Resizing the window and going to setup the error disappears, if instead I click on the done button the node continues to report the error. I attach the screenshoots. Screenshot 2022-01-01 23 35 01 Screenshot 2022-01-01 23 35 24 Screenshot 2022-01-01 23 35 39

ThomasAndreini avatar Jan 01 '22 22:01 ThomasAndreini

@knolleary I've fixed this issue in my fork (branch fix-monaco-expanded)

Shall I raise a PR against master?

Steve-Mcl avatar Jan 08 '22 19:01 Steve-Mcl

@Steve-Mcl yes please

knolleary avatar Jan 08 '22 21:01 knolleary