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.

@types/yup dev dependency

See original GitHub issue

Question about GraphQL Shield

Is it a mistake that @types/yup is listed as a dependencies and not a devDependencies? If not, why do you need it as a dependency? Thank you!

  • I have checked other questions and found none that matches mine.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Syttencommented, Jul 7, 2020

We did a refresh of our lockfile so most likely graphql-shield picked up the new version of types since the version is not pinned but uses ^.

0reactions
maticzavcommented, Jul 7, 2020

We were able to resolve our mismatch issue with @types/yup.

How did you resolve it? Is this still relevant then?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I decide whether @types/* goes into `dependencies ...
I can install types with simple npm install @types/some-library . I'm not sure if I should --save or --save-dev them. It seems to...
Read more >
6. Types Declarations and @types - Effective TypeScript [Book]
(These are known as transitive dependencies.) devDependencies. These packages are used to develop and test your code but are not required at runtime....
Read more >
Types of dependencies | Yarn
As such there are a number of different types of dependencies that you can have (e.g. dependencies , devDependencies , and peerDependencies )....
Read more >
change @types/node dependencies to devDependencies ...
My suggestion is to replace all @types/node dependencies with devDependencies so that they are no longer installed when you install the main ...
Read more >
Tool to tell me which @types deps should be deps, which can ...
All @types dependencies should be devDependencies . That your library is using another library shouldn't concern the user of your library. If ...
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