DTSLint fails to find config for dependents
See original GitHub issuenpm run test-all
in DefinitelyTyped package is failing when the changed package has dependents
for example https://github.com/DefinitelyTyped/DefinitelyTyped/pull/57500 https://github.com/DefinitelyTyped/DefinitelyTyped/pull/57501 https://github.com/DefinitelyTyped/DefinitelyTyped/pull/57502
the error is
Could not find config file at: .../DefinitelyTyped/node_modules/@definitelytyped/dtslint/bin/dtslint.json
i debugged this and think the issue is with this line https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/dtslint/src/lint.ts#L38
the lint.js is located in dtslint/bin/src/lint.js
, but the dtslint-expect-only.json
is in dtslint
(outside of the bin)
thus path.join(__dirname, "..", "dtslint-expect-only.json")
could not find the dtslint-expect-only.json
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
dtslint/lint.ts at master - GitHub
A module look-up failed, this often occurs when you need to run \`npm install\` on a dependent module before you can lint. Before...
Read more >dtslint - npm
I'm getting an error about a missing typescript install. Error: Cannot find module '/node_modules/dtslint/typescript-installs/3.1/node_modules/ ...
Read more >dtslint fails because of dependency in DefinitelyTyped
dtslint results in the following error: Error: Errors in typescript@next for external dependencies: node_modules/cypress/types/jquery/index ...
Read more >Changelog - Cypress Documentation
Fixed an 11.0.0 regression where using custom reporters would cause Cypress to throw a 'Cannot find module' error. Fixes #24607; Fixed testIsolation ...
Read more >typescript-tslint-plugin | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I restarted the first PR on the list and tests now pass.
I always close/re-open the PRs. I’m waiting for the new packages to publish first, however.