Skip to content

Question regarding dependency error messages #2611

Answered by merceyz
wdfinch asked this question in Q&A
Discussion options

You must be logged in to vote

It's complaining about Could not find a declaration file for module 'prop-types' so that means it's after the types for the package, since prop-types doesn't provide it's own that would be @types/prop-types, so whatever depends on prop-types lacks a dependency on @types/prop-types as well. You can use packageExtensions to fix that.

This seems like a yarn 2 specific issue as yarn 1 did not run into these errors.

node_modules* - Hoisting hides all kinds of undeclared dependency issues

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wdfinch
Comment options

Answer selected by wdfinch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants