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
According to https:/vaadin/platform/releases/tag/24.0.0 24.x supports Safari 15.4+ and evergreen versions of all other browsers. All of these support top level await but if you try to use it in a project, you get
VAADIN/build/indexhtml-!~{001}~.js:5066:27: ERROR: Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020", "firefox78", "safari14" + 2 overrides)
The target environment seems a bit off, with the wrong safari major and old versions of all the other browsers
Expected behavior
You can use top level await.
Like you can today by manually adding
build: {
target: ["esnext", "safari15"],
},
to vite.config.ts
Minimal reproducible example
Create a new project, add e.g.
await import("./other.js");
in index.js
Versions
Vaadin / Flow version: 24.4
Java version:
OS version:
Browser version (if applicable):
Application Server (if applicable):
IDE (if applicable):
The text was updated successfully, but these errors were encountered:
Description of the bug
According to https:/vaadin/platform/releases/tag/24.0.0 24.x supports Safari 15.4+ and evergreen versions of all other browsers. All of these support top level await but if you try to use it in a project, you get
The target environment seems a bit off, with the wrong safari major and old versions of all the other browsers
Expected behavior
You can use top level await.
Like you can today by manually adding
to vite.config.ts
Minimal reproducible example
Create a new project, add e.g.
in index.js
Versions
The text was updated successfully, but these errors were encountered: