Warnings during yarn install (Yarn 2)
Closed this issue · 1 comments
larrifax commented
I'm using Yarn 2 to install packages in my app that depends on cypress-react-unit-test
. When installing, yarn
spits out these log messages:
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide @babel/core@^7.0.0-0 requested by @babel/plugin-transform-modules-commonjs@npm:7.10.4
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide cypress@* requested by @cypress/code-coverage@npm:3.8.1
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide @babel/core@^7.0.1 requested by @cypress/webpack-preprocessor@npm:5.4.5
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide @babel/preset-env@^7.0.0 requested by @cypress/webpack-preprocessor@npm:5.4.5
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide babel-loader@^8.0.2 requested by @cypress/webpack-preprocessor@npm:5.4.5
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide webpack@^4.18.1 requested by @cypress/webpack-preprocessor@npm:5.4.5
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide node-sass@^4.7.2 requested by @zeit/next-sass@npm:1.0.1
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide react-dom@^16.8 requested by framer-motion@npm:2.6.13
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide react@^16.8 requested by framer-motion@npm:2.6.13
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide react-dom@^16.6.0 requested by next@npm:9.5.3
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide react@^16.6.0 requested by next@npm:9.5.3
➤ YN0002: │ cypress-react-unit-test@npm:4.14.1 doesn't provide react@>= 16.8.0 requested by react-i18next@npm:11.7.2
I see a couple of issues here:
- There seems to be a lot of
dependencies
inpackage.json
that aren't needed in order to consume the library. E.g.next
,react-i18next
, etc. These should probably be moved todevDependencies
. cypress
should probably be specified as apeerDependency
.- The
dependencies
that are needed should have theirpeerDependencies
added to eitherdependencies
orpeerDependencies
.
bahmutov commented
🎉 This issue has been resolved in version 4.14.3 🎉
The release is available on:
Your semantic-release bot 📦🚀