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.

Typescript dependencies not found

See original GitHub issue

As you can see in https://github.com/infinitered/solidarity/pull/202, if the host app doesn’t pull in @types/cli-table2 (and friends), TypeScript won’t be able to find them when trying to compile the app. This isn’t a great experience.

Our options:

  1. Ship those dependencies as dependencies not devDependencies
  2. Copy those types into our own types
  3. Require host apps to manually bring in types in their own devDependencies

Related: https://stackoverflow.com/questions/45176661/how-do-i-decide-whether-types-goes-into-dependencies-or-devdependencies

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jamonholmgrencommented, May 16, 2018

We can also add them into the new TypeScript CLI boilerplate.

1reaction
cmckni3commented, May 15, 2018

Yeah although that’s a good thing. I guess I would lean more towards a line in the README for TypeScript users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

This dependency was not found - TypeScript, Vue
I am new to TS and Vue. Getting following error when trying to do vue-cli-service serve: This dependency was not found: * @store ......
Read more >
This dependency was not found when using typescript · Issue #4
I ran the command in example folder but I got an error. screenshot_5. However, The following tip does not work for me.
Read more >
Common TypeScript module problems and how to solve them
Problem 1: Irregular location of dependencies ; node_modules in the ; src directory even though ; node_modules is located outside the ; src ......
Read more >
Dependency not found - Get Help - Vue Forum
Hi There, I'm new to Vue, I have added a package to my project, it appears in the package. json and in the...
Read more >
TypeScript not finding types in transitive dependencies
please try un-excluding node_modules/rc-tree folder, then add "types": "./es/index.d.ts", to node_modules/rc-tree/package.json and re-open the project - does it ...
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