Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top-level await is not available in the configured target environment ("ios15.5" + 2 overrides) #9908

Closed
7 tasks done
kingyue737 opened this issue Aug 30, 2022 · 3 comments
Closed
7 tasks done
Labels
bug: upstream Bug in a dependency of Vite p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@kingyue737
Copy link
Contributor

Describe the bug

Error: Top-level await is not available in the configured target environment ("ios15.5" + 2 overrides)

However, according to caniuse, ios 15.5 supports top level await.

Reproduction

https://stackblitz.com/edit/vitejs-vite-6kci4s

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (6) x64 Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz
    Memory: 1.75 GB / 15.86 GB
  Binaries:
    Node: 16.15.1 - D:\Program Files\nodejs\node.EXE
    Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.11.0 - D:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (104.0.1293.70)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    vite: ^3.0.9 => 3.0.9

Used Package Manager

pnpm

Logs

No response

Validations

@sapphi-red
Copy link
Member

It's an upstream issue. Please create an issue to esbuild.

https://github.com/evanw/esbuild/blob/63b575723f17b9eeb0d2fe0ea1bb5fb5c17a2ddc/internal/compat/js_table.go#L688-L696

related: evanw/esbuild#1594

@sapphi-red sapphi-red added bug: upstream Bug in a dependency of Vite p3-minor-bug An edge case that only affects very specific usage (priority) and removed pending triage labels Aug 30, 2022
@kingyue737
Copy link
Contributor Author

fixed in esbuild evanw/esbuild#2505

@bluwy
Copy link
Member

bluwy commented Sep 4, 2022

Thanks for the fix upstream. Closing this for now as the next esbuild release should take effect.

@bluwy bluwy closed this as completed Sep 4, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: upstream Bug in a dependency of Vite p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

No branches or pull requests

3 participants