Skip to content
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

theme-ui/components optional dependency #419

Closed
jbolda opened this issue Oct 23, 2019 · 0 comments
Closed

theme-ui/components optional dependency #419

jbolda opened this issue Oct 23, 2019 · 0 comments

Comments

@jbolda
Copy link
Contributor

jbolda commented Oct 23, 2019

The new components in theme-ui have gatsby listed as an optional dep. When you install to a non-gatsby site (say Create React App), we get issues with multiple versions of webpack as gatsby is also being installed.

The react-scripts package provided by Create React App requires a dependency:

  "webpack": "4.41.0"

Don't try to install it manually: your package manager does it automatically.
However, a different version of webpack was detected higher up in the tree:

  C:\Users\Jacob\Documents\dev\finatr\node_modules\webpack (version: 4.41.2)
$ npm ls webpack
[email protected] C:\Users\Jacob\Documents\dev\finatr
+-- @theme-ui/[email protected]
| `-- [email protected]
|   `-- [email protected] 
`-- [email protected]
  `-- [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants