Describe the bugts(1378) is not handling the use of multiple single quotes correctly, putting all of the code instances into a single block, plus text in between.
Expected behavior
I'd expect the message to look something like:
Top level await expressions are only allowed when the module option is set to es2022, esnext, [...] or nodenext, and the target option is set to es2017 or higher.
Original error
Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.ts(1378)
Describe the bug
ts(1378)
is not handling the use of multiple single quotes correctly, putting all of the code instances into a single block, plus text in between.Expected behavior
I'd expect the message to look something like:
Original error
Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.ts(1378)
Screenshots