Programming Search⌘K

TypeScript errors and diagnostics, page 5 of 8

The error codes and warnings of TypeScript, with the message that each one prints and what causes it. This page has 1,441 cards.

'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module. TS2853

Code
TS2853
Severity
error
Message
'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.

Source: github.com. JSON record. This entry is a card. Help write this page.

Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher. TS2854

Code
TS2854
Severity
error
Message
Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'node18', 'node20', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher.

Source: github.com. JSON record. This entry is a card. Help write this page.

This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files. TS2878

Code
TS2878
Severity
error
Message
This import path is unsafe to rewrite because it resolves to another project, and the relative path between the projects' output files is not the same as the relative path between its input files.

Source: github.com. JSON record. This entry is a card. Help write this page.