ndimatteo / sanity-plugin-note-field

Custom Note Fields for Sanity
MIT License
42 stars 6 forks source link

Cannot use import statement outside a module #12

Open nboliver-ventureweb opened 2 months ago

nboliver-ventureweb commented 2 months ago

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 commented 2 months ago

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.