-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Internal error in tsc: "TypeError: Cannot read properties of undefined (reading 'flags')" #61583
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
Labels
Bug
A bug in TypeScript
Comments
Shorter repo (JS file) const UPDATE_MARKER_FUNC = 'updateMarkerPosition';
window[UPDATE_MARKER_FUNC] = () => { }; Run with Workaround const UPDATE_MARKER_FUNC = 'updateMarkerPosition';
window[UPDATE_MARKER_FUNC.toString()] = () => { }; Longer stack trace
|
The binder forgets to check that there is a parent symbol when late-binding assignment declarations, even though late-binding currently requires a parent symbol. More explanation at the PR with a fix: #61593 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π Search Terms
TypeError: Cannot read properties of undefined (reading 'flags')
π Version & Regression Information
β― Repository Link
https://github.com/GaurangTandon/tsc-issue-repro
π» Code
π Actual behavior
π Expected behavior
Internal TypeScript errors should not be thrown.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: