-
-
Notifications
You must be signed in to change notification settings - Fork 338
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
I'm using Next.js with Webpack 4 and when I add a fallback page to pages/_offline, terser-webpack-plugin gives the error below:
TypeError: Cannot read property 'javascript' of undefined
at /Users/xxxxxxxxx/node_modules/terser-webpack-plugin/dist/index.js:572:38
I searched for the issue and terser-webpack-plugin@5+ is for Webpack 5 and is not compatible with Webpack 4.
How To Reproduce
Steps to reproduce the behavior:
- Use [email protected] which has a dependency for terser-webpack-plugin: "^5.1.1" (Only compatible with Webpack 5)
- Use next.js with Webpack 4
- Add a fallback page to pages/_offline.js
- Get error while building the app.
imtheu and icalrn
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working