Several instances of styled-components
Fresh create-react-app sourced application, whenever I include the <Tree /> 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
Hmmm, this might be challenging to fix as react-tree depends on styled components. I guess I could put it as a peer dependency
This is because styled-components was not a peer dependency. Have moved it @cdolek
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 https://github.com/naisutech/react-tree/issues/61#issuecomment-1114971015, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABKR65ZOWYF7GJKNSRETXLVH7SFXANCNFSM5UWVPS3A . You are receiving this because you authored the thread.Message ID: @.***>