-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find a declaration file for module 'prop-types' #316
Comments
Same issue here... |
Same issue here |
@jaredpalmer Would you accept a PR for this, or are you opposed to adding |
I guess i'd rather document it in master (right after the install instructions), and then just spend our energy moving to |
This is still happening. |
I was able to resolve this by installing |
same issue |
I've created a new project using create-react-app-typescript and added the simple Formik example from the readme but I got a compile error right away:
error TS7016: Could not find a declaration file for module 'prop-types'.
I think this is due to the
@types/prop-types
package being included in Formik'sdevDependencies
and notdependencies
. Based on the TypeScript publishing doc, it seems like including the dependency independencies
would be an appropriate way to manage it and should resolve this issue. Unfortunately, non-TS projects would bring down the dependency, but the alternative is requiring TS projects to manage a dependency their code doesn't depend on.The text was updated successfully, but these errors were encountered: