-
Notifications
You must be signed in to change notification settings - Fork 19
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
next 14.2.4 type:module give error #20
Comments
"contentlayer2": "0.4.6", |
Sorry, could you elaborate on what causes the error and provide a small reproducible is possible? |
okay, i will find time to make a small reproduce repo |
Am also getting this, Edit: oops, posts do show up, I set draft to true by accident. Despite this error, everything still appears to be running fine. |
Could you include more information on the version of Next and React that you are using as well. I just tested on Next 15 canary and React 19 without issue - https://stackblitz.com/edit/github-ekmxur-ba82kk?file=package.json |
see here
|
also see latest commit |
Ah this is the same issue as contentlayerdev/contentlayer#313. It's a Webpack warning that can be ignored: webpack/webpack#15688. Or if you don't use |
yes, i know, but don't know why, i just switch to |
I'm getting this too with is proposed solution adding this to next.config under the webpack? (see here)
|
Generated 13 documents in .contentlayer
✓ Ready in 3.7s
○ Compiling / ...
✓ Compiled / in 4.9s (1255 modules)
GET / 200 in 5301ms
✓ Compiled in 340ms (580 modules)
[webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /Users/tianyingchun/Documents/hyperse-internal/hyperse-blog/node_modules/@contentlayer2/core/dist/generation/generate-dotpkg.js for build dependencies failed at 'import(URL.pathToFileURL(filePathJoin(generatedPkgPath, 'generated', 'index.mjs')).href)'.
Build dependencies behind this expression are ignored and might cause incorrect cache invalidation.
The text was updated successfully, but these errors were encountered: