Skip to content
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

ESM "type": "module" throwing ERR_REQUIRE_ESM #20

Closed
astoilkov opened this issue Feb 3, 2021 · 5 comments
Closed

ESM "type": "module" throwing ERR_REQUIRE_ESM #20

astoilkov opened this issue Feb 3, 2021 · 5 comments

Comments

@astoilkov
Copy link
Owner

Related comments:

@astoilkov
Copy link
Owner Author

Next.js seems to currently not support ESM modules. This is why I reverted the "type": "module" with this commit.

@Luccasoli
Copy link

Luccasoli commented Feb 3, 2021

@astoilkov now another problem has arisen :(, an image of the new error follows:

any of the dependencies / devDependencies I'm using:
"typescript": "^4.1.3"
"use-local-storage-state": "^8.0.0",
"next": "10.0.6",
"react": "17.0.1",

image

@astoilkov
Copy link
Owner Author

astoilkov commented Feb 3, 2021

@Luccasoli Fixed. Sorry for the inconvenience. You can update. The new version is 8.0.1.

@Luccasoli
Copy link

It worked, it was worth the support and congratulations for the library! 😄

@astoilkov
Copy link
Owner Author

@Luccasoli Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants