miku0129 / prj_vue-onyva

An web app with CRUD operation. Unit test and test coverage is implemented.
https://onyva.msano.ovh/
1 stars 0 forks source link

Cannot use await in top-level in vite #3

Closed miku0129 closed 2 months ago

miku0129 commented 2 months ago

[vite:esbuild-transpile] Transform failed with 1 error: assets/index-!~{001}~.js:25766:22: ERROR: Top-level await is not available in the configured target environment ("es2019" + 2 overrides)

miku0129 commented 2 months ago

https://stackoverflow.com/questions/76616620/vite-refuses-to-use-the-correct-build-target-in-my-svelte-ts-project