-
Notifications
You must be signed in to change notification settings - Fork 265
Closed
Description
Summary
After I install styled-jsx
with yarn, I get dependency not found warnings in yarn log.
@babel/core
should be added in dependencies.
Versions
styled-jsx
: 4.0.0
How To Reproduce
Steps to reproduce the behavior:
yarn init -y
yarn set version berry
yarn add styled-jsx react
- See yarn log
Results
Actual
➤ YN0000: ┌ Resolution step
➤ YN0002: │ styled-jsx@npm:4.0.0 [2b948] doesn't provide @babel/core (pfa7cf), requested by @babel/plugin-syntax-jsx
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ string-hash@npm:1.1.3 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ styled-jsx@npm:4.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ stylis-rule-sheet@npm:0.0.10 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ stylis@npm:3.5.4 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ to-fast-properties@npm:2.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 0s 565ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: Done with warnings
Expected
No warning in yarn log.
Workaround
Add in .yarnrc.yml
:
packageExtensions:
styled-jsx@*:
dependencies:
"@babel/core": "*"
Zer025 and Lukrisum
Metadata
Metadata
Assignees
Labels
No labels