-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Error: To load an ES module, set "type": "module" in the package.json or use the .mjs extension #240
Comments
You can use // next.config.js
const nextConfig = {
reactStrictMode: true,
+ transpilePackages: ['@textea/json-viewer'],
} |
Having the same issue after migrating to |
This workaround worked. |
Having the same issue on Next v13. The workaround did NOT fix it. |
Did you see a different error message? |
going to 2.12.5 was the solution for me |
v2.14.1 has been released. Let me know if you still see the same build error. |
Since v2.14.1 it works without using the workaround. So it is fixed at least for me. |
I upgraded to version 2.14.0 from 2.13.1 and when I build the project (Using nextjs+typescript), it triggers the following error:
If I downgrade to 2.12.1 it works.
The text was updated successfully, but these errors were encountered: