You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is weird indeed... I'm not using Next.js so I'm not sure. I guess it should support ES6 import statements. My wild guess would be to just copy the content of index.js and import it from your source files instead of npm... Sorry for not having a proper solution for now!
Trying to use this in a Next.js project and get an error from simply trying to import the package.
SyntaxError: Cannot use import statement outside a module
Appears that it doesn't have Node.js-compatible source files — trying to run ES Modules in a Node.js environment.
I would love to try this out in my Next.js projects.
The text was updated successfully, but these errors were encountered: