-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputDomain: LS: Auto-importFix AvailableA PR has been opened for this issueA PR has been opened for this issueFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
return str.lastIndexOf(prefix, 0) === 0;
^
TypeError: Cannot read properties of undefined (reading 'lastIndexOf')
at Object.startsWith (D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:1695:20)
at isPathRelativeToParent (D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:96841:23)
at D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:96797:24
at Object.firstDefined (D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:158:26)
at getPathRelativeToRootDirs (D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:96795:23)
at tryGetModuleNameFromRootDirs (D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:96654:40)
at getLocalModuleSpecifier (D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:96422:44)
at computeModuleSpecifiers (D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:96400:33)
at getModuleSpecifiersWithCacheInfo (D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:96368:26)
at Object.getModuleSpecifiers (D:\_bazel_admin\zdx3yfxt\execroot\ankidesktop\node_modules\typescript\lib\tsc.js:96353:20)
Target //:dist failed to build
===>
TypeScript/src/compiler/core.ts
Line 2138 in 2ce05a8
| return str.lastIndexOf(prefix, 0) === 0; |
fatcerberus and gedeagas
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputDomain: LS: Auto-importFix AvailableA PR has been opened for this issueA PR has been opened for this issueFixedA PR has been merged for this issueA PR has been merged for this issue