Skip to content
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

Fix checker initialization crash with esModuleInterop and global merges resolving to ImportEquals aliases #47348

Merged
merged 2 commits into from Jan 11, 2022

Conversation

andrewbranch
Copy link
Member

Fixes #47299

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jan 7, 2022
Copy link
Member

@DanielRosenwasser DanielRosenwasser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an appropriate change. Thank you for finding the repro!

Longer-term, I would like to think through something that makes us resilient to the sort of ordering sensitivity we experienced here. Maybe the test case is enough for now, but ideally we would have a way to enforce discipline to avoid pulling on types before symbol merging has finished. Maybe @ahejlsberg has thoughts on this.

@DanielRosenwasser
Copy link
Member

@typescript-bot cherry-pick this to release-4.5

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jan 7, 2022

Heya @DanielRosenwasser, I've started to run the task to cherry-pick this into release-4.5 on this PR at d52b9d3. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

Hey @DanielRosenwasser, I've opened #47349 for you.

typescript-bot pushed a commit to typescript-bot/TypeScript that referenced this pull request Jan 7, 2022
Component commits:
755e1cb Add minimal failing test

d52b9d3 Fix checker initialization crash with esModuleInterop global merges resolving to ImportEquals aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TS Server fatal error: Cannot read property 'flags' of undefined
4 participants