-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Debug failure at resolveExternalModule after allowArbitraryExtensions #52182
Labels
Bug
A bug in TypeScript
Comments
This else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) {
const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference));
error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension);
} |
And |
Minimal repro: // @filename: tsconfig.json
{
"compilerOptions": {
"paths": {
"@angular/*": ["./@angular/*"]
}
}
}
// @filename: @angular/core/package.json
{
"name": "@angular/core",
"typings": "index.d.ts"
}
// @filename: @angular/core/index.ts
export {};
// @filename: @angular/core/testing/test.ts
import "@angular/core"; |
The general pattern seems to be:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of 89e928e (#51435), the perf runner is Debug asserting: https://typescript.visualstudio.com/TypeScript/_build/results?buildId=142178&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b
This seems to be carried through to PRs too (like https://typescript.visualstudio.com/TypeScript/_build/results?buildId=142192&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b&t=fb1961db-d514-5215-fe81-a42cdc309f86 😢)
cc @weswigham
The text was updated successfully, but these errors were encountered: