vike icon indicating copy to clipboard operation
vike copied to clipboard

TypeError when adding plugin to existing vite project

Open civicBoy13 opened this issue 4 years ago • 2 comments

Question / Discussion

Hi all,

Im having an issue when adding the plugin to an existing vite project with typescript. On the server side, the html renders fine but when it reaches the front end, i keep getting this error in the console Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'accept') at all.page.vue:5:23 I found that if i remove the lang="ts" from the script tag the error goes away, but that defeats the purpose of using typescript. Has anyone had a similar issue?

civicBoy13 avatar Sep 26 '22 19:09 civicBoy13

See https://github.com/brillout/vite-plugin-ssr/issues/461.

brillout avatar Sep 26 '22 20:09 brillout

Also see https://github.com/brillout/vite-plugin-ssr/issues/460.

brillout avatar Sep 26 '22 20:09 brillout