close
The Wayback Machine - https://web.archive.org/web/20210707034048/https://github.com/vercel/next.js/issues/26826
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

Update with-preact example to use webpack 5 #26826

Open
sedlukha opened this issue Jul 1, 2021 · 1 comment
Open

Update with-preact example to use webpack 5 #26826

sedlukha opened this issue Jul 1, 2021 · 1 comment

Comments

@sedlukha
Copy link
Contributor

@sedlukha sedlukha commented Jul 1, 2021

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

@repository
Copy link

@repository repository commented Jul 2, 2021

It should be noted building the application will still work. It seems to be only an issue when running the dev server.

@timneutkens timneutkens changed the title Next.js 11 + preact + webpack 5 = 💔 Update with-preact example to use webpack 5 Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
@timneutkens @sedlukha @repository and others