-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Assertion violation: undefined relativeSpecifiers
on Object.getModuleSpecifiers
#42785
Comments
I'm getting a similar error:
|
This seems to be related to type inference; as the solution to this crash is to explicitly declare the type of a |
I'm facing the same problem (only in ts 4.2):
|
I'm having the same error, and I have a small reproduction repo: https://github.com/flybayer/tsc-broken (boilerplate for a new Blitz app)
Related: #42773 |
For my projects that were reproducing this I tracked it back to a regression introduced by #42095 . I was able to get my projects building without the crash by reverting a single line in the PR that was doing extra filtering on the return of I am not sure if this is a complete fix and how it might interact with the desired behavior introduced by #42095. |
have had to rollback to "typescript": "^4.1.5",. @dlannoye any chance you can open a PR? |
@flybayer I can’t reproduce with your repo. I get a few checker errors but no crash:
@dlannoye (or actually anyone else who has seen this error), are you using pnpm or some other system that puts modules in a hidden folder (starting with |
@andrewbranch run |
Ah, yep, the |
@andrewbranch no you import from |
Yes, I am using PNPM in my repository. The issue no longer reproduces if I clean and using npm instead for this project. |
I have the same problem using |
Just tested my codebase with |
@andrewbranch do you know if this fix will be released soon? |
Yes; it will (4.2.3) |
From @dlannoye:
The text was updated successfully, but these errors were encountered: