ZNTC0001: Top-level await is not available in the configured target environment
ZNTC0001
Section titled “ZNTC0001”Top-level await is not available in the configured target environment
Category: Target/Compatibility
Reproduction
Section titled “Reproduction”export const data = await fetch("/api");Options: --target=es2021
How to fix
Section titled “How to fix”See the error message for cause and resolution.