Migrating To Vite: Uncaught Typeerror: Cannot Read Property 'attrs' Of Undefined
I am trying to migrate a big app from create-react-app to Vite.js for reasons of performance in the dev environment. I followed this guide: https://phelipetls.github.io/posts/migra
Solution 1:
It seems a CommonJS syntax error because vite does not support CommonJS syntax. You can try to use vite plugin vite-plugin-commonjs
BTW,
https://github.com/originjs/webpack-to-vite
This is a github project that I found when I searched for error messages when I was converting an old project. It lists some conversion items and error repair methods. It can even convert an old project to a vite project with one click. It’s great, I recommend it!
Post a Comment for "Migrating To Vite: Uncaught Typeerror: Cannot Read Property 'attrs' Of Undefined"