-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Parsing error when using variable of
#556
Comments
I started with a real-world error and stripped out as much as possible while still preserving the error. |
I appreciate the effort but the reproduction is not minimal at all... There's 7 files and 11 dependencies. Please minimize it so |
@privatenumber I have reduced it to one file and one external dependency. Please check again. |
Thanks, I appreciate it! I believe the root problem is in I also noticed an opportunity to skip the parsing completely in your case as the parsing is only used to detect dynamic imports, which you're not using. Upgrading to tsx v4.10.3 should fix your use-case. |
of
Thank you for the quick turnaround! I would never have thought of that. |
Fixed in guybedford/es-module-lexer#173 |
🎉 This issue has been resolved in v4.10.5 If you appreciate this project, please consider supporting this project by sponsoring ❤️ 🙏 |
Acknowledgements
Minimal reproduction URL
https://stackblitz.com/edit/stackblitz-starters-gtalwu?file=tsconfig.json
Problem & expected behavior (under 200 words)
npm start
Expected: code runs
Actual: Parse error
Works with bun
Bugs are expected to be fixed by those affected by it
Compensating engineering work financially will speed up resolution
The text was updated successfully, but these errors were encountered: