$ errors.fyi/typescript/TS4022 74 namespaces · 3,092 codes
typescript · typescript/TS4022
TS4022

Top-Level await Not Permitted

Top-level `await` is used but the `module` setting in `tsconfig.json` does not support it. Set `module` to `es2022`, `esnext`, `node16`, or `nodenext` to enable top-level `await`.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT