Error when generating definition from javascript (error TS9006) #47614
Labels
Bug
A bug in TypeScript
Domain: Declaration Emit
The issue relates to the emission of d.ts files
Domain: JS Emit
The issue relates to the emission of JavaScript
Fix Available
A PR has been opened for this issue
Milestone
Bug Report
Hi,
our goal is to generate definition from javascript files.It will be helpful for checking types and have completion.
Our workspace environmnent is a multi project that declare project dependencies using references property in tsconfig.
It is stopped in our case with this error TS9006: Declaration emit for this file requires using private name 'BaseClass'.
We couldn't find a satisfactory workaround.
Can we say that it is a limitation of typescript ?
Thanks
🔎 Search Terms
error TS9006: Declaration emit for this file requires using private name
Not sure if this is the same issue as #41672
🕗 Version & Regression Information
No regression. It is something that we started to work on.
The issue is reproducible with typescript 4.5.5 and 4.6.0-beta.
⏯ Playground Link
This minimal repo illustrate our case and highlight the issue:
https://github.com/llgcode/js-def-issue
💻 Code
🙁 Actual behavior
🙂 Expected behavior
Generate the definition file.
The text was updated successfully, but these errors were encountered: