Kanaries / graphic-walker

An open source alternative to Tableau. Embeddable visual analytic
https://docs.kanaries.net/graphic-walker
Apache License 2.0
2.53k stars 135 forks source link

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

Open aszenz opened 7 months ago

aszenz commented 7 months ago

✘ [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 commented 7 months ago

@kanaries/graphic-walker@0.4.59" has unmet peer dependency "styled-components@^5.3.6".

ObservedObserver commented 3 weeks ago

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