You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run: api-extractor run --local --typescript-compiler-folder ./node_modules/typescript --verbose
Summary
When --typescript-compiler-folder flag is used api-extractor prints miss-leading warning.
Analysis will use the bundled TypeScript version 4.1.5
...
...
*** The target project appears to use TypeScript 4.2.3 which is newer than the bundled compiler engine; consider upgrading API Extractor. ...
@hottell - I think the warning is correct. Per docs, api-extractor always uses the bundled compiler. The `--typescript-compiler-folder' option allows you to substitute system typings from your project's toolchain.
It's also there in the last sentence of the usage, but you have to read carefully:
--typescript-compiler-folder PATH
API Extractor uses its own TypeScript compiler engine
to analyze your project. If your project is built
with a significantly different TypeScript version,
sometimes API Extractor may report compilation errors
due to differences in the system typings (e.g. lib.
dom.d.ts). You can use the
"--typescriptCompilerFolder" option to specify the
folder path where you installed the TypeScript
package, and API Extractor's compiler will use those
system typings instead.
Run:
api-extractor run --local --typescript-compiler-folder ./node_modules/typescript --verbose
Summary
When
--typescript-compiler-folder
flag is used api-extractor prints miss-leading warning.typescriptCompilerFolder
value is properly set:/<PATH>/node_modules/typescript
tsc
binary._checkCompilerCompatibility()
is being called without proper tsc path that is being usedRepro steps
Expected result:
Provide correct info to user that his specified version of TSC is used
Actual result:
Miss leading warnings what TSC is being used
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/api-extractor
version?node -v
)?The text was updated successfully, but these errors were encountered: