-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Case Study] Angular CLI #266
Comments
I've updated yarn to master to include the #279, the build is still broken of course :) Updates:
|
Updates:
|
So for the For The build succeeded on the latest commit of your repo. I tried I didn't upgraded angular to the latest version yet... I'll try to dig more into it by the end of the month 😉 |
I forgot to push some changes apparently, consider that rectified. Due to a busy work schedule I haven't been able to look into this some more, and it doesn't look like the next week(s) are going to be an improvement. |
So it seems that upgrading angular to the latest version (8.2.7) have fixed the I'm looking now for the out of memory problem and it seems that it comes from the read-package-tree module called by angular cli... The package does not work with PnPify |
@Embraser01 do you mind submitting a PR for an E2E test case like the ones we have in the repo? Even if it doesn't pass yet, it would make it easier for people unfamiliar with Angular (such as me :p) to know how to quickly reproduce what is meant to work but doesn't 😃 |
Yep, was thinking about making an E2E test! Will try to make one tomorrow 😉 |
@Embraser01 I have briefly looked at |
So the E2E test works for the build command...
Now to run a ng command: |
I've opened a couple of tickets to kickstart things upstream in the angular-cli repo:
There's also this existing ticket which currently leads to a failure in Currently I'm using a yarn plugin (https://github.com/bgotink/yarn-plugin-angular) to get everything up and running (without pnpify) and to identify what needs to change to get everything up and running. |
And there's now a ticket on angular's side to track yarn 2 support: angular/angular-cli#16980 |
What package is covered by this investigations?
All packages contained in the angular/angular-cli repository, most notably
@angular/cli
.Describe the goal of the investigation
As an angular developer I want my builds to work with berry (or PnP in general). Not having this would mean I can't use yarn and I don't want to even think about the consequences to that as I use yarn workspaces in literally all of my angular repos.
Angular has a work-in-progress bazel buildchain. Bazel uses yarn internally, but getting that up and running with berry is best left to another ticket.
Investigation report
Test repo at bgotink/berry-angular-poc. Current status: not working at all
Encountered issues:
@angular-devkit/core/node/resolve
.I've hacked together a quick resolution function using
pnpapi
here, that seems to work for now though I'm sure I'll run into more issues later.Next up iswebpack-subresource-integrity
which is at a version that doesn't listhtml-webpack-plugin
as peer dependency, leading to an error.Adding a resolution to the first version that does include the missing peer dependency leads to [Bug] Accessing a missing peerDependency throws unlisted dependency error #265.Fixed by Moves .code into .pnpCode #279
The text was updated successfully, but these errors were encountered: