question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DTSLint fails to find config for dependents

See original GitHub issue

npm 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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sandersncommented, Dec 2, 2021

I restarted the first PR on the list and tests now pass.

0reactions
sandersncommented, Dec 2, 2021

I always close/re-open the PRs. I’m waiting for the new packages to publish first, however.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found