CommonJS issue with Styled Components on Build #383
Closed
anujshah108
started this conversation in
General
Replies: 1 comment 14 replies
-
This is my vite.config.ts:
|
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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 and I have tried all the commonJS options and plugins and nothing seems to fix it.
Please let me know!
Beta Was this translation helpful? Give feedback.
All reactions