-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Is it possible to catch a build-time error during a dynamic import? #472
Labels
Comments
Not really sure what you're asking/reporting |
6 tasks
Ooh gotcha. The original issue didn't explain that dynamic import errors can't be caught. Thanks for explaining. This would be a bug, and possibly related to #493 Feel free to submit a PR |
privatenumber
added
bug
Something isn't working
pr welcome
and removed
enhancement
New feature or request
pending triage
labels
Mar 13, 2024
Okay thank you - that is also the issue i have. I think we can close this as a dupe. |
Repository owner
locked and limited conversation to collaborators
Mar 13, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Precheck
Feature request
I have a codegen task watching a directory for changes and whenever there is a malformed TS file, TSX will throw a esbuild error and exit the watcher. I wish I could try-catch this error so the watcher restarts the task.
Motivations
I don't know if it's expected but I think it's a bit unintuitive that I can't trust this:
Alternatives
No response
Additional context
No response
Contributions
The text was updated successfully, but these errors were encountered: