We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeError: Cannot read properties of undefined (reading 'kind')
https://www.typescriptlang.org/dev/bug-workbench/?ts=5.8.2#code/KYDwDg9gTgLgBDAnmYcDKMCGNUF44DeAsAFBxyYBccAdgK4C2ARsFANynlPUDOMUASxoBzDiQC+Y0qEiw4AYwA2mHjzgAVYH2Jk4PYDAzZgACj7HqRnAEoC4zgi3x8J4NUw1E1uLgB8hB3IAM2g4E3kIGj44AG0Aa2BEABo4ADdMRTpgAF04CCC4AHkmACtgeRgAOmAafgEtV2tvHXJWhAALAR5K-UMsHBMWttb4xOzqdMzgJMDW8WsxNvtdSVJl0iA
export type State = { a: number; b: string; }; export class Test{ setState(state: State){} test = (e: any) => { for (const [key, value] of Object.entries(e)) { this.setState({ [key]: value, }); } }; }
running tsc results in a crash:
tsc
No crash is expected, some type errors should be found instead.
No response
The text was updated successfully, but these errors were encountered:
hasVisibleDeclarations
I'm also hitting this. Here's the MRE: https://www.typescriptlang.org/play/?#code/C4TwDgpgBAwg9gO2AQwJYIgJwDwGkIgDOUEAHsBAgCbGHCboDmAfFALxQDeAUFFANr4QUdFCGEAugC4oAIzhwANhGQIA3NwC+3bgGNEdKPoR1VwGfCRoMOAEQAzBbagAfKLdnJMt1hx59HOBl6AFcIABpeOS8Ze2RFQgitHXsQhF1gVEQoKhAEZABbVF08AmIyCmpaeiZmAAp7VEw6GXFw6MYZAFlkMFKidvklFQRmAEoLRBR0LH7CVn8oZWAoTAhCEMVzWCnrWfFWNzSqCEaMKnYoY9OZqg0ox0woOuNDfgBrAnaAN3iwiSgcHsHQAdJQaus6mMxlwonxUMC6gBCNYbLYw1GbFZ+ASfEDSKC-RRhKCaDR8PgQBLQTFbD4EAEcIlhcmknR8NbAEKYBCrdZYjTabi5fJFXR1BxOdoYADuUB6YDq-H4krgtnaoQgEnaKs83nacWpEgk0KAA
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
π Search Terms
TypeError: Cannot read properties of undefined (reading 'kind')
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/dev/bug-workbench/?ts=5.8.2#code/KYDwDg9gTgLgBDAnmYcDKMCGNUF44DeAsAFBxyYBccAdgK4C2ARsFANynlPUDOMUASxoBzDiQC+Y0qEiw4AYwA2mHjzgAVYH2Jk4PYDAzZgACj7HqRnAEoC4zgi3x8J4NUw1E1uLgB8hB3IAM2g4E3kIGj44AG0Aa2BEABo4ADdMRTpgAF04CCC4AHkmACtgeRgAOmAafgEtV2tvHXJWhAALAR5K-UMsHBMWttb4xOzqdMzgJMDW8WsxNvtdSVJl0iA
π» Code
π Actual behavior
running
tsc
results in a crash:π Expected behavior
No crash is expected, some type errors should be found instead.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: