Uncaught TypeError: Cannot read properties of undefined (reading 'node') #13799
Replies: 2 comments 1 reply
-
getting similar error in a React project.
update:
|
Beta Was this translation helpful? Give feedback.
-
Getting the same thing by using
Update: I found on this is simply related to externalized modules that vite uses to avoid large bundle sizes and help with browser compatibility. See here: https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility So basically, in my case I just had to install buffer manually with You may also find this useful: https://www.npmjs.com/package/vite-plugin-node-polyfills |
Beta Was this translation helpful? Give feedback.
-
I' m using Planetscale and Drizzle and my frontend is in React + Vite
At first I got this error message in my frontend
then I tried to solve it by using a vite plugin : vite-plugin-top-level-await or changing the vite config by
But now i got this problem related to Undici probably because I import some code in another package where Undici is installed
Anyone got an idea to solve this ?
Beta Was this translation helpful? Give feedback.
All reactions