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
Update with-preact example to use webpack 5 #26826
Comments
It should be noted building the application will still work. It seems to be only an issue when running the dev server. |
This comment has been hidden.
This comment has been hidden.
@timneutkens I think this issue can be closed now as the stackblitz link in the issue now runs without any issues! |
After investigating - I think that @prefresh/next needs to cut a release including preactjs/prefresh#361 before this issue can be resolved. The using-preact example cannot be upgraded to next@11 / webpack@5 without Current transitive dependency of Compare the |
That PR is published in latest normally |
What version of Next.js are you using?
11.0.1
What version of Node.js are you using?
14.16.1
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
Next.js 11 with webpack 5 seems to break the using-preact example.
Error: Cannot find module 'webpack/lib/dependencies/ConstDependency'
Expected Behavior
Should work with webpack 5. Everything is ok with
webpack5: false
.To Reproduce
https://stackblitz.com/edit/nextjs-preact-webpack5?file=next.config.js
The text was updated successfully, but these errors were encountered: