-
Notifications
You must be signed in to change notification settings - Fork 921
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
Add comment that can fix TypeScript errors with Yarn #2800
Conversation
With Yarn 2 TypeScript can't find @types/... files in node_modules (because it does not exist). This is a workaround for such situation.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/pikapkg/snowpack/6Gu65Aac69wtndkRQfxXtgCojtHL |
Yarn v2 really doesn't support More for style than anything, I'd like to move this note from the config file to the README. Mind moving it to a note in the README? |
Typescript does not support yarn 2 folder structure directly. |
Yup, that's the readme that every start application gets (and a good place to leave notes for people after they initialize the template) |
Hey @spidgorny if you add it to the readme, you can convert from draft, assign me as a reviewer and I'll merge it |
Not sure what you mean with that. Anyway, I've tried to explain the situation and a workaround in the README. @melissamcewen, please check. |
Thanks for the contribution @spidgorny, LGTM! |
With Yarn 2 TypeScript can't find @types/... files in node_modules (because it does not exist). This is a workaround for such situation.
Changes
Testing
Docs