Replies: 3 comments 1 reply
-
|
I also have this issue. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Renaming to .js was no good for me, because I had other scripts loading those files as modules. This problem just motivated me to port the whole site to TypeScript. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This is a straight-up Next.js bug: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have some
.mjsfiles that areimported in my next project andrequired in various utility scripts. This has worked fine for some time.But recently, they do not seem to be included in the dev version of the application.
npm run devruns the app, but in the console I get things like:What's extra weird is that if I run the production version with
npm run start, everything works fine.I can repro on node 12 and 14 and on two different machines. next is at version 9.4.1.
I see #9607, but that seems like a different issue?
I also see
experiments.mjsin Webpack 5... but we're not on 5 yet right?Beta Was this translation helpful? Give feedback.
All reactions