Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

critters webpack plugin can't be uses with html-webpack-plugin v5 #170

Closed
RodrigoTomeES opened this issue Jul 31, 2024 · 1 comment
Closed

Comments

@RodrigoTomeES
Copy link

If you have html-webpack-plugin v5 like in a AEM project npm throws an error because critters expect html-webpack-plugin v4 as an optional peer dependency.

npm i -D critters-webpack-plugin

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: [email protected]
npm warn Found: [email protected]
npm warn node_modules/acorn
npm warn   peer acorn@"^6.0.0 || ^7.0.0 || ^8.0.0" from [email protected]
npm warn   node_modules/acorn-jsx
npm warn     acorn-jsx@"^5.3.2" from [email protected]
npm warn     node_modules/espree
npm warn   1 more (the root project)
npm warn
npm warn Could not resolve dependency:
npm warn peer acorn@"^8" from [email protected]
npm warn node_modules/acorn-import-assertions
npm warn   acorn-import-assertions@"^1.7.6" from [email protected]
npm warn   node_modules/webpack
npm warn
npm warn Conflicting peer dependency: [email protected]
npm warn node_modules/acorn
npm warn   peer acorn@"^8" from [email protected]
npm warn   node_modules/acorn-import-assertions
npm warn     acorn-import-assertions@"^1.7.6" from [email protected]
npm warn     node_modules/webpack
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/html-webpack-plugin
npm error   dev html-webpack-plugin@"^5.5.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional html-webpack-plugin@"^4.5.2" from [email protected]
npm error node_modules/critters-webpack-plugin
npm error   dev critters-webpack-plugin@"*" from the root project
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/html-webpack-plugin
npm error   peerOptional html-webpack-plugin@"^4.5.2" from [email protected]
npm error   node_modules/critters-webpack-plugin
npm error     dev critters-webpack-plugin@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
@kara
Copy link
Collaborator

kara commented Oct 25, 2024

Closing this issue because ownership of Critters has moved to the Nuxt team, who will be maintaining the project going forward. This repo is archived and won't receive any future updates.

If the issue is still relevant, please re-post it to the actively-maintained fork at https://github.com/danielroe/beasties.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants