Skip to content

ERR: module 'cookie' does not provide an export named 'parse', with Vite dev mode #13957

Closed Answered by quantum-corn
quantum-corn asked this question in Q&A
Discussion options

You must be logged in to vote

Just leaving this here in case someone stumbles upon this. I have managed to fix it. The problem was with the component-library-react package having its entry point as index.jsx. Vite could not optimize the dependency interop because of this. I have since changed it to index.js and released a fresh v4.0.0. This has been working for me so far.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by quantum-corn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant