Skip to content

TypeError: path.indexOf is not a function in github actions #47921

Closed
@bluelovers

Description

@bluelovers

https://github.com/bluelovers/ws-rest/runs/5221176096?check_suite_focus=true

/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:7690
        var index = path.indexOf("\\");
                         ^
TypeError: path.indexOf is not a function
    at normalizeSlashes (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:7690:26)
    at Object.combinePaths (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:7756:28)
    at /home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:41927:40
    at Object.firstDefined (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:407:26)
    at primaryLookup (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:41926:27)
    at Object.resolveTypeReferenceDirective (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:41885:24)
    at /home/runner/.config/yarn/global/node_modules/ts-node/src/resolver-functions.ts:135:14
    at Array.map (<anonymous>)
    at Object.resolveTypeReferenceDirectives (/home/runner/.config/yarn/global/node_modules/ts-node/src/resolver-functions.ts:133:33)
    at actualResolveTypeReferenceDirectiveNamesWorker (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:11[49](https://github.com/bluelovers/ws-rest/runs/5221176096?check_suite_focus=true#step:5:49)19:163)
    at resolveTypeReferenceDirectiveNamesWorker (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:11[51](https://github.com/bluelovers/ws-rest/runs/5221176096?check_suite_focus=true#step:5:51)85:26)
    at processTypeReferenceDirectives (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:116660:31)
    at findSourceFileWorker (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:116[54](https://github.com/bluelovers/ws-rest/runs/5221176096?check_suite_focus=true#step:5:54)5:21)
    at findSourceFile (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:116407:26)
    at processImportedModules (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:116806:25)
    at findSourceFileWorker (/home/runner/.config/yarn/global/node_modules/typescript/lib/typescript.js:116[55](https://github.com/bluelovers/ws-rest/runs/5221176096?check_suite_focus=true#step:5:55)1:17)

https://github.com/bluelovers/idea-l10n-zht/runs/5216786455?check_suite_focus=true

/home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/typescript/lib/typescript.js:7690
        var index = path.indexOf("\\");
                         ^
TypeError: path.indexOf is not a function
    at normalizeSlashes (/home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/typescript/lib/typescript.js:7690:26)
    at Object.combinePaths (/home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/typescript/lib/typescript.js:7756:28)
    at /home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/typescript/lib/typescript.js:41927:40
    at Object.firstDefined (/home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/typescript/lib/typescript.js:407:26)
    at primaryLookup (/home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/typescript/lib/typescript.js:41926:27)
    at Object.resolveTypeReferenceDirective (/home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/typescript/lib/typescript.js:41885:24)
    at /home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/ts-node/src/resolver-functions.ts:135:14
    at Array.map (<anonymous>)
    at Object.resolveTypeReferenceDirectives (/home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/ts-node/src/resolver-functions.ts:133:33)
    at actualResolveTypeReferenceDirectiveNamesWorker (/home/runner/work/idea-l10n-zht/idea-l10n-zht/node_modules/typescript/lib/typescript.js:114919:163)

Metadata

Metadata

Labels

APIRelates to the public API for TypeScriptBreaking ChangeWould introduce errors in existing codeExternalRelates to another program, environment, or user action which we cannot control.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions