spscript icon indicating copy to clipboard operation
spscript copied to clipboard

Unable to run SPScript in nodejs

Open ebitsdev opened this issue 4 years ago • 0 comments

Hello,

I am trying to run a test development instance, but I keep getting the following error with SPScript: SyntaxError: Cannot use import statement outside a module

How to properly setup SPScript under Node.js? I get above error after properly installing SPScript using npm while trying the sample code provided in the documentation.

I have been using the script in the browser without any issues. My environment: Windows 10 with Node 14.15.0.

A sample setup in the documentation would help very much.

Thanks,

ebitsdev avatar Oct 30 '20 19:10 ebitsdev