Skip to content

Cannot use import statement outside a module #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nboliver-ventureweb opened this issue Jul 5, 2024 · 1 comment
Open

Cannot use import statement outside a module #12

nboliver-ventureweb opened this issue Jul 5, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@nboliver-ventureweb
Copy link

When using the plugin in an embedded studio, such as this example: https://github.com/SimeonGriggs/sanity-remix-template,
importing the plugin into sanity.config.ts is causing the error Cannot use import statement outside a module.

Would adding "type": "module" to package.json correct this?

@ndimatteo ndimatteo added the help wanted Extra attention is needed label Jul 8, 2024
@ndimatteo
Copy link
Owner

Hey there @nboliver-ventureweb I'm not sure, this sounds like it could be an environment/deployment issue with your embedded studio.

Perhaps someone on the Sanity side can weigh in here as this is the first I'm hearing of this kind of issue. Keep in mind I used the official Sanity plugin-kit to build this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants