CommonJS issue with Styled Components on Build #18686
Replies: 1 comment
-
solved by adding to react-is to external roll-up options |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all -
I am getting an issue when building my app that I recently converted from CRA to VITE.
error during build: node_modules/styled-components/dist/styled-components.browser.esm.js (1:9): "typeOf" is not exported by "node_modules/react-is/index.js", imported by "node_modules/styled-components/dist/styled-components.browser.esm.js".
This only happens on build, when I start the app it works perfect and I have tried all the commonJS options and plugins and nothing seems to fix it.
Please let me know!
My Vite Config:
Beta Was this translation helpful? Give feedback.
All reactions