spscript
spscript copied to clipboard
Unable to run SPScript in nodejs
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,