Page 1 of 1

Module Import For Script Expressions

Posted: Thu Apr 11, 2024 12:35 pm
by DtM
Hello,

Like many others, we're looking at replacing all of our legacy Script Expressions with new, Node.JS Script Expressions.

I have a question regarding Module Imports.

The placeholder of new Script Expressions has the comment of

Code: Select all

// Your imports here
Does this apply to only built in modules (path, fs, etc.) or am I able to install other modules via npm to use in my Script Expressions?

A lot of our legacy Script Expressions use database connections, which we'd ideally like to keep, otherwise it makes the task a lot more involved.

Many thanks,

Dan

Re: Module Import For Script Expressions

Posted: Thu Apr 11, 2024 12:55 pm
by mkayyyy
IIRC the imports only relate to built in modules, external modules aren't currently supported in Script expressions.