From e3b91e445beee1f9126648ef359a37ec1f2ad0ce Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Fri, 14 Apr 2023 16:14:34 +0300 Subject: [PATCH] Update peerDependencies Allow using `cssnano` v6 ```bash npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: htmlnano@2.0.3 npm ERR! Found: cssnano@6.0.0 npm ERR! node_modules/cssnano npm ERR! cssnano@"^6.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional cssnano@"^5.0.11" from htmlnano@2.0.3 npm ERR! node_modules/htmlnano npm ERR! htmlnano@"^2.0.3" from the root project npm ERR! npm ERR! Conflicting peer dependency: cssnano@5.1.15 npm ERR! node_modules/cssnano npm ERR! peerOptional cssnano@"^5.0.11" from htmlnano@2.0.3 npm ERR! node_modules/htmlnano npm ERR! htmlnano@"^2.0.3" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. ``` --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c805b75..3dced11 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "uncss": "^0.17.3" }, "peerDependencies": { - "cssnano": "^5.0.11", + "cssnano": "^5.0.11 || ^6.0.0", "postcss": "^8.3.11", "purgecss": "^5.0.0", "relateurl": "^0.2.7",