Several instances of styled-components
cdolek opened this issue · 3 comments
cdolek commented
Fresh create-react-app sourced application, whenever I include the component, I get the following warning in console:
styled-components.esm.js:1 It looks like there are several instances of 'styled-components' initialized in
this application. This may cause dynamic styles to not render properly, errors during the rehydration
process, a missing theme prop, and makes your application bigger without good reason.
See https://s-c.sh/2BAXzed for more info.
same thing happened with styled components v5.3.3
and v5.3.5
ortonomy commented
Hmmm, this might be challenging to fix as react-tree
depends on styled components. I guess I could put it as a peer dependency
ortonomy commented
This is because styled-components was not a peer dependency. Have moved it @cdolek
cdolek commented
that should work...
…On Mon, May 2, 2022 at 10:38 AM Gregory Orton ***@***.***> wrote:
Hmmm, this might be challenging to fix as react-tree depends on styled
components. I guess I could put it as a peer dependency
—
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABKR65ZOWYF7GJKNSRETXLVH7SFXANCNFSM5UWVPS3A>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>