Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ts(1378) is parsed incorrectly #73

Closed
mybearworld opened this issue Aug 19, 2023 · 0 comments · Fixed by #80
Closed

ts(1378) is parsed incorrectly #73

mybearworld opened this issue Aug 19, 2023 · 0 comments · Fixed by #80
Labels
bug Something isn't working

Comments

@mybearworld
Copy link

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:

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)

Screenshots

A demo of the behavior in "Describe the bug"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant