-
Notifications
You must be signed in to change notification settings - Fork 86
Conversation
README.md
Outdated
@@ -169,3 +169,5 @@ I'm getting an error about a missing typescript install. | |||
Error: Cannot find module '/node_modules/dtslint/typescript-installs/3.1/node_modules/typescript` | |||
``` | |||
Package lock files such as `yarn.lock` and `package-lock.json` may cause this issue because of our github dependency on `"definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production"`, which contains the list of typescript versions to install. To fix this, try deleting your lock file and re-installing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Package lock files such as
yarn.lock
andpackage-lock.json
may cause this issue because of our github dependency on"definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production"
, which contains the list of typescript versions to install. To fix this, try deleting your lock file and re-installing.
Separate topic but can this text be removed since 5e0f2e5, or #287?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can still run into the problem, but the explanation should just be "Your dependencies may be out of date."
package-lock.json is checked into dtslint but not Definitely Typed, so maybe the solution can just be npm ci
? But only if you're doing it from this repo and not Definitely Typed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. What do you think about the suggested change to the previous line?
README.md
Outdated
@@ -169,3 +169,5 @@ I'm getting an error about a missing typescript install. | |||
Error: Cannot find module '/node_modules/dtslint/typescript-installs/3.1/node_modules/typescript` | |||
``` | |||
Package lock files such as `yarn.lock` and `package-lock.json` may cause this issue because of our github dependency on `"definitelytyped-header-parser": "github:Microsoft/definitelytyped-header-parser#production"`, which contains the list of typescript versions to install. To fix this, try deleting your lock file and re-installing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can still run into the problem, but the explanation should just be "Your dependencies may be out of date."
package-lock.json is checked into dtslint but not Definitely Typed, so maybe the solution can just be npm ci
? But only if you're doing it from this repo and not Definitely Typed.
Sounds good 👍 I've updated that line. This FAQ is to do with installing one list of TypeScript versions, and testing another, which can only happen if you end up with two different @definitelytyped/typescript-versions (I think). I haven't investigated the current dtslint/dtslint-runner/typescript-versions relationship to confirm how that could happen ... I do vaguely recollect encountering this in the past ... There are child worker processes involved if I remember, so maybe somewhere in there the process doing the installing uses one |
I ran into this issue here:
The failed invocation installed 3.8, 4.0, etc., a concurrent invocation installed 3.9, 4.5, etc. The failed invocation found the 4.5 directory but didn't wait for the 4.5 installation to complete and failed as a result (I surmise).
Solved with
lerna --concurrency 1 run ...
. I suspect this is also the cause behind mdx-js/mdx#1172 and #267.Fixes #267