Create react app to vite migration #2592
Replies: 4 comments 11 replies
-
@lokeshwarobuli can you create a minimal reproduction of this in a public github project with install + build + error reproduction steps? Offhand, I'm guessing vite isn't correctly digesting the |
Beta Was this translation helpful? Give feedback.
-
@ryan-roemer, I have minimal idea of how to recreate the same issue with a public repo. All I did was migrate from CRA to Vite and the error was popping and I googled and found the blog link and added the victory vendor to the list of packages in package.json. Still the error continues. Will it be helpful if I share the package.json or the component file where I use victory charts. I am sorry !! |
Beta Was this translation helpful? Give feedback.
-
I have a minimal repository here which just displays a Everything works fine in that so far. If you could open a PR with changes that exhibit the same failure as you're seeing in your project that would be the next step to help us diagnose. Thanks! |
Beta Was this translation helpful? Give feedback.
-
We tried the same, like creating a Vite project and then installing victory charts which works fine, but the problem with our scenario is our entire project is in CRA and we are trying to migrate to Vite and that's when it causes an issue. Also thanks a lot for all the help !! |
Beta Was this translation helpful? Give feedback.
-
I recently migrated from create-react-app to vite and the build is failing on vite for the following reason
Uncaught TypeError: Failed to resolve module specifier "d3-color". Relative references must start with either "/", "./", or "../".
Then I did
npm ls d3-color
which gave me the followingand I read a blog regarding this here https://formidable.com/blog/2022/victory-esm/
Is there anything we can do here ??
Beta Was this translation helpful? Give feedback.
All reactions