Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Cannot find module '/Users/JounQin/.dts/typescript-installs/next/node_modules/typescript' #267

Closed
JounQin opened this issue Jan 27, 2020 · 1 comment · Fixed by #343
Closed

Comments

@JounQin
Copy link

JounQin commented Jan 27, 2020

I tried deleting yarn.lock and install all dependencies like https://github.com/microsoft/dtslint#faq but it didn't work.

Error: Command failed: yarn dtslint --expectOnly packages/svelte
Error: Cannot find module '/Users/JounQin/.dts/typescript-installs/next/node_modules/typescript'
Require stack:
- /Users/JounQin/Workspaces/GitHub/types/node_modules/dtslint/bin/lint.js
- /Users/JounQin/Workspaces/GitHub/types/node_modules/dtslint/bin/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
    at Function.Module._load (internal/modules/cjs/loader.js:686:27)
    at Module.require (internal/modules/cjs/loader.js:848:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at testDependencies (/Users/JounQin/Workspaces/GitHub/types/node_modules/dtslint/bin/lint.js:63:16)
    at Object.<anonymous> (/Users/JounQin/Workspaces/GitHub/types/node_modules/dtslint/bin/lint.js:25:28)
    at Generator.next (<anonymous>)
    at /Users/JounQin/Workspaces/GitHub/types/node_modules/dtslint/bin/lint.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/JounQin/Workspaces/GitHub/types/node_modules/dtslint/bin/lint.js:4:12)
error Command failed with exit code 1.

reproduction: https://github.com/rx-ts/types/runs/412739812?check_suite_focus=true#step:6:23

repo: https://github.com/rx-ts/types

command: yarn test

@jablko
Copy link
Contributor

jablko commented Aug 28, 2021

Could this have been due to concurrent dtslint invocations trampling each other installing TypeScript versions? https://github.com/rx-ts/types/blob/544b5fdcb44a2c6c63ba9391752bef8affad4711/scripts/dtslint.ts#L15

I realize this comes a bit late: that dtslint.ts script has been removed. I just ran into a similar issue with lerna run that I (think) I solved with lerna --concurrency 1 run.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants