You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
That's fair enough, but do you know why when using the yarn create command it is defaulting to using PnP? Looking at the documentation it seems to suggest if you dont have a .yarnrc.yml it will do this, should it be added part of the react-ts project structure?
Describe the bug
I have run
yarn create vite my-app --template react-ts
and it has generated a project.The project is not happy at all in VsCode and can not find any of the imported modules.
For whatever reason the reproduction URL does not suffer the same issue and honestly, the issue seems to be with yarn using pnp.
I managed to make it work after generating the project and adding a .yarnrc.yml with
Reproduction (Does not reproduce with the same steps as above)
https://stackblitz.com/edit/vitejs-vite-d5pkqyku?file=react-ts%2Fsrc%2FApp.tsx
Steps to reproduce
yarn create vite my-app --template react-ts
cd my-app
yarn
Open VS Code see errors on all imports
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: