vite + react + typescript => getting an "failed to resolve import prop-types from path-here. Does this file exist error" #16575
Unanswered
mrjayviper
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
some info:
` [plugin:vite:import-analysis] Failed to resolve import "prop-types" from "src/components/MyComponent.tsx". Does the file exist?
` import PropTypes from 'prop-types'
Reproduction
https://github.com/mrjayviper/my-sample-react
Steps to reproduce
System Info
the sample command above causes an error on my laptopn - windows11 - nodejs 20.12.2 - npm 10.5.0
Used Package Manager
npm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions