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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
This is not a Vite issue. Top level await is not supported in the default configured target. See on https://caniuse.com/?search=top%20level%20await. You should either change the target or use .then to resolve the build.
For those who comes here from searching the error message, if you want to support normal browsers (without setting esnext target), try my plugin vite-plugin-top-level-await.
Describe the bug
Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2019", "firefox78", "safari13.1")
yarn dev is ok, yarn build is not work~~
Reproduction
https://github.com/asasugar/vite-element-plus-admin/blob/master/src/main.ts
System Info
Used Package Manager
yarn
Logs
Validations
The text was updated successfully, but these errors were encountered: