-
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
Cannot read property 'jsDocCache' of undefined crash on 4.2.2 #42957
Comments
Well, the fix is probably straightforward, but I'm not sure how to write a test for an import alias with no declarations. @airhorns There's no verbose compiler option, but you can edit Below the line starting: |
Yup, same as #42956 I think, the node in question seems to be the import { NotFound } from "http-errors" With that module installed and with |
Interesting, this is a pure Typescript error. That discounts my worry that it was from a change in commonjs exports. The repro is the same so I'm going to close #42956 now. |
Properties created by a non-homomorphic mapped type (like |
Also, I have a small repro now: // @filename: errors.d.ts
export = X
declare const X: X.Names
declare namespace X {
type Names = { [P in 'NotFound']: unknown }
}
// @filename: use.ts
import ( NotFound } from './errors' |
Bless your heart @sandersn ! Thanks! |
Bug Report
tsc
crashes with a TypeError when compiling TS code with lots of JSDocs:🔎 Search Terms
TypeError jsdoccache getJSDocTagsWorker
🕗 Version & Regression Information
💻 Code
I am not sure which file in my project is causing this crash -- is there a hidden verbose compiler option that would indicate which file it's working on?
My tsconfig:
🙁 Actual behavior
tsc
crashes trying to compile an unspecified file🙂 Expected behavior
tsc
should succeed compiling the file or log an error to the consoleThe text was updated successfully, but these errors were encountered: