Closed Flowrome closed 2 years ago
I guess it's the same reason why eslint-plugin-import
raises a false positive error (https://github.com/import-js/eslint-plugin-import/issues/2132).
In short, I didn't include the main
field in the package.json
, since it's only for the browser.
NextJS is probably looking only for the main
field instead of main
and browser
fields.
I can try to fix it by adding the main
field in the package.json
as a workaround, but it's a NextJS issue.
Fix done.
You can use version 1.0.2
now.
If you want, you can check this repository with a workable (and dirty) example: https://github.com/macabeus/next-js-react-gba-js
Thank you @macabeus you've made my life simplier :)
Hi
Do you have any idea why nextjs is giving me module not found with this library?
here's the error (there's nothing else really)
I'm using NextJS 12.0.7 with typscript
Thank you for your hard work
Have a nice day