-
Notifications
You must be signed in to change notification settings - Fork 79
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
No template for dependency: ConstDependency #58
Comments
What version of Webpack is this? The plugin only supports version 4. My guess is you're on 3 or 5. |
I get the same error with webpack 4.42.0 |
Seems to be duplicate of #27, no? But as I commented there, please check if you have duplicate installs of webpack under your node_modules and dedupe them. It worked for me. |
If anyone can provide a bit more information here that would be useful. Since this is a version incompatibility, screenshots aren't enough to figure out where the problem lies. |
Getting the same problem. |
@SPKorhonen I have the same issue you commented on #27 with Angular 9. Can you explain to me how to update the Webpack versions in Angular 9 to make them equal? I'm not seeing any versioning of webpack in package.json or in angular.json to update. |
I just fixed in Angular 9 updating package.json to match a single webpack version across dependencies and then doing npm dedupe as explained in #58 (comment) |
I believe this may be fixed by 5.0.0? |
I just ran into this issue with worker-plugin 5.0.0 in a Next.js app. // package.json
"resolutions": {
"webpack": "4.44.2"
} |
After adding your webpack resolution, make sure to run yarn install. |
I'm still seeing this error with the suggested fix using resolutions, using package versions |
vercel/next.js#21740 (comment):
At this point, I don't see any other solutions than migrating to webpack 5, which seems to work for some people (vercel/next.js#22813). |
The text was updated successfully, but these errors were encountered: