-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Webpack inlining in Next v10.0.6 breaks treat/webpack-plugin #21721
Comments
Going to add on to this as we are having an error with v10.0.6 too with webpack, except we use next-sass still which in turn uses MiniCssExtractPlugin.
|
There is a similar issue here : #21679 |
Duplicate of #21679 |
I fixed this problem introduced since v10.0.6 by removing the use of the deprecated library |
In my case solved installing webpack@4.44.1 |
#22798 (comment) |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
10.0.6
What version of Node.js are you using?
13.7.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
N/A
Describe the Bug
The inlining of webpack added in #20598 breaks the webpack plugin for the Treat CSS library. The plugin imports other plugins from the
webpack
module, which is no longer available.npm run dev
fails immediately at startup:Attempting to remedy the issue by installing
webpack@4.44.1
(the version specified in thepackage.json
ofnext@10.0.6
) breaks the plugin, but only when loading a page in dev, or when runningnpm run build
:Expected Behavior
npm run build
should succeed in the given reproducer repository.To Reproduce
npm install && npm run build
fails withError: Cannot find module 'webpack/lib/node/NodeTemplatePlugin'
npm install webpack@4.44.1 && npm run build
fails with error indicating multiple versions of Webpack are installed.npm install next@10.0.5 && npm run build
succeeds.The text was updated successfully, but these errors were encountered: