Skip to content

RollupError: "typeOf" is not exported by "node_modules/react-is/index.js", imported by "node_modules/styled-components/dist/styled-components.browser.esm.js #13400

Answered by sapphi-red
jonasmarco asked this question in Q&A
Discussion options

You must be logged in to vote

This is happening because react-is is a CJS dependency but you're disabling commonjs support.
https://github.com/jonasmarco/contact-book/blob/0383036cac22cf6639421471941eaf6a25d01db2/vite.config.ts#L14-L16

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jonasmarco
Comment options

Answer selected by jonasmarco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #13396 on June 01, 2023 08:46.