You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using vite build on the create vite-app (with and without updating vite version) with jsx produces a build that doesn't run, throwing error: Uncaught TypeError: Cannot read property 'MODE' of undefined at index.fb79c190.js:1
This line is included in the dist output:
"development"===import.meta.env.MODE&&console.log("[vue tip] You are using an non-optimized version of Vue 3 JSX, which does not take advantage of Vue 3's runtime fast paths. An improved JSX transform will be provided at a later stage.")
Removing this line from assets/index.[hash].js allows the app to run as expected.
Describe the bug
Using
vite build
on the create vite-app (with and without updating vite version) with jsx produces a build that doesn't run, throwing error:Uncaught TypeError: Cannot read property 'MODE' of undefined at index.fb79c190.js:1
This line is included in the dist output:
Removing this line from assets/index.[hash].js allows the app to run as expected.
Reproduction
https://github.com/alexbakerdev/vite-vue-tsx-example/tree/master
open web page its blank, console logs an error
Uncaught TypeError: Cannot read property 'MODE' of undefined at index.fb79c190.js:1
System Info
vite
version: 1.0.0-beta.6vue
version: 3.0.0-beta.15@vue/compiler-sfc
version: 3.0.0-beta.15Logs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: