-
-
Notifications
You must be signed in to change notification settings - Fork 27k
Typescript and pnp enabled app fails to compile #7456
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Related #5647 |
I hit this recently too, and couldn't find a fix. @iansu perhaps we should ask the Yarn team for thoughts on this? |
We can try but I think they're pretty focused on shipping Yarn 2 at the moment. cc @arcanis |
Fwiw I'd recommend using the v2 for any project using PnP. Afaik a single blocker remains, which is the following error. We've recently fixed it in
For now you can experiment by cloning |
@arcanis thanks for the suggestion. It sounds like Yarn v2 is getting close to release? I personally can't wait for it! 🙌 |
This issue is reproducible with Yarn v2, fwiw:
|
@SEAPUNK Can you send a PR to Yarn's E2E test? Afaik CRA, TS, and Yarn 2 work fine: |
@arcanis Sure, I'll try to get a minimal repro first. |
Never mind, it's not happening because of our CRA TS setup, it's happening because it's in our monorepo, I assume there are files in the directory above that are messing with how it starts up. |
Im also having this issue trying to use CRA as a monorepo package (yarn workspaces) with yarn PNP |
any clues not to solve? seems nohoist is not an option for PNP |
Also running into this in a monorepo with CRA. |
Same problem here with CRA 3.4.1 & typescript 3.8.3 & yarn 2 monorepo:
|
This has been fixed already, it was an issue in |
Closing as this seems to be fixed. |
Describe the bug
yarn start
results in the following errorDid you try recovering your dependencies?
Ran
yarn
, using yarn@latest ( atmyarn@1.17.3
)Which terms did you search for in User Guide?
Environment
Environment Info:
Steps to reproduce
(Write your steps here:)
create-react-app test --typescript --use-pnp
Expected behavior
No error occurs and app start sucessfully
Actual behavior
Reproducible demo
https://github.com/mateja176/yarn-pnp-demo
The text was updated successfully, but these errors were encountered: