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

[SPIKE] Investigate how to resolve "multiple styled-components" error #15

Open
MikeLockz opened this issue Apr 29, 2019 · 0 comments
Open

Comments

@MikeLockz
Copy link

Is your feature request related to a problem? Please describe.
When locally developing new components or working on a local dApp, importing any rimble-web3-components AND importing a rimble-ui component in the same create-react-app, an error occurs that states "multiple instances of styled components loaded" and causes elements of the page to not get styled properly.

This does not happen when the code is pushed to a production environment as all instances of styled-components will be resolved to a single instance.

Describe the solution you'd like
Importing both rimble-ui and rimble-web3-components should not need any modifications to webpack to function property.

Additional context
Workaround is documented in the root README and also on the styled-components website: https://www.styled-components.com/docs/faqs#how-can-i-fix-issues-when-using-npm-link-or-yarn-link

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

1 participant