Load supplementary plugins on demand

I'm loading the day.js module in the function node setup tab, and it works fine for basic date/time functions, however for more advanced functions, it requires additional plugins to be loaded as per the readme - Loading plugin in NodeJS · Day.js

plugin

The dayjs plugins have been installed by default when dayjs is added, and are at /home/pi/.node-red/externalModules/node_modules/dayjs/plugin but adding the plugin as per the screenshot above results in a node-RED crash.
Can these supplementary modules also be added in the function node setup by adding the path somehow?

No, I don't think the externalModules stuff will work with that. It isn't a scenario that has been considered.

Ah well, I'll look for a different solution instead of dayjs.
Thanks

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