Skip to content
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

<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies when using with next.js #3

Open
AhmedBaset opened this issue Oct 18, 2024 · 2 comments

Comments

@AhmedBaset
Copy link

Following the guide in README for integrating with next.js

export default withReactCompiler(nextConfig);
 next build

  ▲ Next.js 14.2.5
  - Environments: .env.local, .env

   Creating an optimized production build ...

<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
@SukkaW
Copy link
Owner

SukkaW commented Oct 18, 2024

If you are using Next.js, please prefer Next.js built-in react compiler configuration instead.

@AhmedBaset
Copy link
Author

AhmedBaset commented Oct 18, 2024

If you are using Next.js, please prefer Next.js built-in react compiler configuration instead.

I'd like to but unfortunately some of the dependencies I use aren't compatible with React 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants