This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
vite + react + typescript => getting an "failed to resolve import prop-types from path-here. Does this file exist error" #16574
Labels
You can continue the conversation there. Go to discussion →
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
The text was updated successfully, but these errors were encountered: