Skip to content

Unable to run SPScript in nodejs #105

@ebitsdev

Description

@ebitsdev

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions