ZNTC0001: Top-level await is not available in the configured target environment
ZNTC0001
섹션 제목: “ZNTC0001”Top-level await is not available in the configured target environment
카테고리: 타겟/호환성
재현 코드
섹션 제목: “재현 코드”export const data = await fetch("/api");옵션: --target=es2021
해결 방법
섹션 제목: “해결 방법”이 에러의 원인과 해결 방법은 에러 메시지를 참고하세요.