node red – Error: Module not allowed. TypeError: Cannot read properties of undefined (reading ‘padEnd’)

The error appeared after installing the module via the command line to modules installed via the manage palette.

Error: Module not allowed
    at Object.requireModule [as require] (\npm\node_modules\node-red\node_modules\@node-red\registry\lib\externalModules.js:104:19)
    at Object.requireModule [as require] (\npm\node_modules\node-red\node_modules\@node-red\registry\lib\util.js:51:45)
    at new LEDNodeConstructor (.node-red\node_modules\node-red-contrib-ui-led\dist\nodes\ui_led\ui_led.js:9:42)
    at Object.createNode (\npm\node_modules\node-red\node_modules\@node-red\runtime\lib\flows\util.js:157:27)
    at Flow.start (\npm\node_modules\node-red\node_modules\@node-red\runtime\lib\flows\Flow.js:260:54)
    at async start (\npm\node_modules\node-red\node_modules\@node-red\runtime\lib\flows\index.js:398:17) {
  code: 'module_not_allowed'
}
TypeError: Cannot read properties of undefined (reading 'padEnd')
    at Flow.start (\npm\node_modules\node-red\node_modules\@node-red\runtime\lib\flows\Flow.js:308:62)
    at async start (\npm\node_modules\node-red\node_modules\@node-red\runtime\lib\flows\index.js:398:17)

After removing modules using the command line or the manage palette, an error remains.

Read more here: Source link