You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Expected ',', got '[' (Note that you need plugins to import files that are not JavaScript)functionexpectedCommaGotSquareBracket(dialect: string){returnimport("./modules/sql").then(m=>m.sql({dialect: (masany)[dialect]}))}// Expected ident (Note that you need plugins to import files that are not JavaScript)functionexpectedIdent(){returnimport("./modules/javascript").then(m=>m.javascript({jsx: true}))}
Both can be worked around by translating to async await forms, highly possible to be related to #14221.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Thanks for the code examples. I figured out the bug. The sql({dialect: (m as any)[dialect] part, which has ({ .... } was tripping out the regex. Will fix this.
Describe the bug
There might be a dup closed issue but I suspect I've found more.
I am providing two examples, both from https://github.com/codemirror/language-data but simplified.
Both can be worked around by translating to async await forms, highly possible to be related to #14221.
Reproduction
...
Steps to reproduce
No response
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: