-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Dependency resolution is broken with 'yarn --pnp' (Yarn Plug 'n' Play) #12465
Comments
As mentioned, Angular seems to do the resolution by itself, which causes issues when operating within exotic installation schemes where some assumptions don't necessarily hold. Fixes look quite easy though! I've made a few quick fixes to see what's the minimal amount of changes needed to make it work, and listed them below. Let me know what you think, and if you want to setup a call to discuss all this in more details I'm all for it! Please ping me by email or Twitter or this thread 🙂 Missing dependenciesPlug'n'Play detected various unsafe behaviors that probably should be fixed whatever you choose to do:
|
Small update - yarn plug 'n play (pnp) is now usable on the latest stable yarn (1.12.3). It isn't widely advertised yet, so it's still low profile / probably still experimental. |
Confirming error persists with the latest versions:
|
Another update - yarn pnp has official documentation now: https://yarnpkg.com/en/docs/pnp Also, yarn is planning on making pnp the default mode in yarn 2.0: yarnpkg/yarn#6953 |
Any update on if yarn pnp support will get added to Angular. And if so, when? |
Let me know if someone with Angular knowledge is interested to make a peer programming session to make the needed changes. I'd be happy to help 🙂 |
Update on Yarn 2: the first release candidate is available https://github.com/yarnpkg/berry/releases/tag/2019-08-16 The lead Yarn maintainer @arcanis seems eager to assist, so it'd be awesome if an Angular dev could find some time to work with him on this 😀 |
this is still broken with yarn 1.19.1 |
@laurencefass Further Yarn development happen mostly on the v2 trunk 🙂 I'm happy to report that thanks to @Embraser01 and @larixer we're very close from a fully working Angular! I was actually about to merge our first Angular E2E test to track potential regressions. |
It would be cool to have Angular CLI working with pnp. What is the progress here? Any help required? In regards to I wish TypeScript would open their API to allow yarn team to actually hook in, but I get why they don't do it. |
While everyone can use whatever tool they feel appropriate, it is also important to note that Angular is supported by Yarn 2
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
ng: 6.0.0
yarn: 1.12.0 (RC)
node: v8.11.3
os: OSX 10.13.6
Repro steps
yarn --pnp
(switches it to pnp mode)yarn build
The log given by the failure
Desired functionality
I'd like it work ;) - Specifically when I'm not using yarn pnp, I get this:
Mention any other details that might be useful
This is apparently caused the build tool implementing it's own dependency resolution. Yarn pnp provides an alternative dependency resolution that eschews node_modules. It's an experimental feature. I've filed an issue in their repo, but they directed me here, since you guys seem to be using custom resolution. See yarnpkg/yarn#6482
The text was updated successfully, but these errors were encountered: