react-tree icon indicating copy to clipboard operation
react-tree copied to clipboard

Several instances of styled-components

Open cdolek opened this issue 3 years ago • 1 comments

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

cdolek avatar Apr 29 '22 17:04 cdolek

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 avatar May 02 '22 14:05 ortonomy

This is because styled-components was not a peer dependency. Have moved it @cdolek

ortonomy avatar Sep 30 '22 15:09 ortonomy

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: @.***>

cdolek avatar Oct 11 '22 08:10 cdolek