Skip to content

Unable to Build Local #59

@21CreativeMedia

Description

@21CreativeMedia

I'm trying to run your project locally, but it won't run. I'm getting this error every time I run: pnpm dev or pnpm build

Next.js 13.5.4 
  - Local:        http://localhost:3000
  - Experiments (use at your own risk):
     · mdxRs

 ✓ Ready in 3.3s
 ⚠ Your project has `@next/font` installed as a dependency, please use the built-in `next/font` instead. The `@next/font` package will be removed in Next.js 14. You can migrate by running `pnpm dlx @next/codemod@latest built-in-next-font .`. Read more: https://nextjs.org/docs/messages/built-in-next-font
/Generated 20 documents in .contentlayer
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Parsing of /root/chronark.com/node_modules/.pnpm/@contentlayer+core@0.3.4_esbuild@0.19.4_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 /root/chronark.com/node_modules/.pnpm/@contentlayer+core@0.3.4_esbuild@0.19.4_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 /root/chronark.com/node_modules/.pnpm/@contentlayer+core@0.3.4_esbuild@0.19.4_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] Caching failed for pack: Error: Unable to snapshot resolve dependencies

Try to work around with dynamic-build.js and other wont help, either a fix or temporary workaround would be great, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions