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

[ERROR] Could not resolve "styled-components" on install via yarn in vite #361

Open
aszenz opened this issue Apr 3, 2024 · 2 comments
Open

Comments

@aszenz
Copy link

aszenz commented Apr 3, 2024

✘ [ERROR] Could not resolve "styled-components"

node_modules/@kanaries/graphic-walker/dist/graphic-walker.es.js:8:45:
  8 │ import or, { StyleSheetManager as R5e } from "styled-components";
    ╵                                              ~~~~~~~~~~~~~~~~~~~

You can mark the path "styled-components" as external to exclude it from the bundle, which > will
remove this error and leave the unresolved path in the bundle.

Manually installinng the pkg fixes the issue

@aszenz
Copy link
Author

aszenz commented Apr 3, 2024

@kanaries/[email protected]" has unmet peer dependency "styled-components@^5.3.6".

@ObservedObserver
Copy link
Member

styled components is a peer dep of graphic-walker so you need to install it manully in your repo. This is due to graphic-walker is part of Rath which both uses styled-components. But I belive styled-components is not often installed in other repos so will removed it from peer deps soon

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