ERR: module 'cookie' does not provide an export named 'parse', with Vite dev mode #13957
-
I recently ran into an issue where the above error appeared. I opened an issue and a PR (linked with the issue), where all the relevant details are posted, but it was closed. I am lost. I am new to this and I would really appreciate any guidance regarding how to process from here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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. |
Beta Was this translation helpful? Give feedback.
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.