Repository: contentlayerdev/contentlayer

Issue #272: Webpack warnings when using `next.config.mjs`
Created: 2022-07-19T09:08:22Z
Hi,
First of all thanks for the work, I really like the idea behind contentlayer.
"next": "12.2.2",
"next-contentlayer": "^0.2.6",
"contentlayer": "^0.2.6",


I don't really know how I can start debugging the error.
Any help is appreciated.
Thanks!

Duplicate issue #475: Build warning on latest Next.js
Created: 2023-05-31T18:17:41Z
I'm getting the following build warning when running github.com/ada-url/website
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /Users/yagiz/Developer/ada/ada-url.com/node_modules/.pnpm/@contentlayer+core@0.3.3_esbuild@0.17.19_markdown-wasm@1.2.0/node_modules/@contentlayer/core/dist/dynamic-build.js for build dependencies failed at 'import(`file://${compiledConfigPath}`)'.
<w> Build dependencies behind this expression are ignored and might cause incorrect cache invalidation.
Generated 10 documents in .contentlayer
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /Users/yagiz/Developer/ada/ada-url.com/node_modules/.pnpm/@contentlayer+core@0.3.3_esbuild@0.17.19_markdown-wasm@1.2.0/node_modules/@contentlayer/core/dist/dynamic-build.js for build dependencies failed at 'import(`file://${compiledConfigPath}`)'.
<w> Build dependencies behind this expression are ignored and might cause incorrect cache invalidation.
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /Users/yagiz/Developer/ada/ada-url.com/node_modules/.pnpm/@contentlayer+core@0.3.3_esbuild@0.17.19_markdown-wasm@1.2.0/node_modules/@contentlayer/core/dist/getConfig/index.js for build dependencies failed at 'import(`file://${modulePath}?x=${Date.now()}`)'.
<w> Build dependencies behind this expression are ignored and might cause incorrect cache invalidation.
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /Users/yagiz/Developer/ada/ada-url.com/node_modules/.pnpm/@contentlayer+core@0.3.3_esbuild@0.17.19_markdown-wasm@1.2.0/node_modules/@contentlayer/core/dist/getConfig/index.js for build dependencies failed at 'import(`file://${modulePath}?x=${Date.now()}`)'.
<w> Build dependencies behind this expression are ignored and might cause incorrect cache invalidation.
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /Users/yagiz/Developer/ada/ada-url.com/node_modules/.pnpm/@contentlayer+core@0.3.3_esbuild@0.17.19_markdown-wasm@1.2.0/node_modules/@contentlayer/core/dist/generation/generate-dotpkg.js for build dependencies failed at 'import(filePathJoin(generatedPkgPath, 'generated', 'index.mjs'))'.
<w> Build dependencies behind this expression are ignored and might cause incorrect cache invalidation.
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /Users/yagiz/Developer/ada/ada-url.com/node_modules/.pnpm/@contentlayer+core@0.3.3_esbuild@0.17.19_markdown-wasm@1.2.0/node_modules/@contentlayer/core/dist/generation/generate-dotpkg.js for build dependencies failed at 'import(filePathJoin(generatedPkgPath, 'generated', 'index.mjs'))'.
<w> Build dependencies behind this expression are ignored and might cause incorrect cache invalidation.

Closing comment (2023-05-31T20:47:59Z): Thanks for reporting this issue. I think it's a duplicate of #272