-
-
Notifications
You must be signed in to change notification settings - Fork 941
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
Problems with Angular CLI 6 #1260
Comments
I'd like to add: same behavior with Linux (node v10.6.0). We'll be waiting for a fix. In the mix while I have to stick with npm. |
Same behavior on Windows 7 (node v8.11.3). |
i am running into a similar problem with ng serve. tried installing typescript globally as some older posts are suggesting. also tried --shamefully-flatten. both did not work. only solution for me until now is going back to npm install :(. |
tl;dr: I believe I have ran the clean commands with both In the
|
I'm no expert at package management, but if in the package
Shouldn't the |
It's defined as a peerDependency in the package.json.
|
It's listed as a |
I just ran into the same issue with Angular 6. From what I understand in this thread, Angular doesn't have correct dependencies set in their packages? How comes that NPM resolves those deps, and pnpm doesn't? If the package.json is wrong, is pnpm aiming to behave the same as npm does? I'd love to provide more infos on this if needed, or try to help otherwise if I can :) |
Sorry that I am not digging into it but after maintaining pnpm for more than 2 years I am sure pnpm works correctly in all cases. Some version of Angular worked with pnpm but then, unfortunately, things went south. These are the issues that may happen:
In most cases these issues are solved when installing a flat node_modules. You can do that with pnpm by setting if Angular still doesn't work with |
Thank you for your answer. I've checked my repository, and shamefully-flatten makes it better. However, with my cli version, #767 hits me, which is caused by an old dependency from the angular cli. It looks like there are too many parties involved, that would need to fix things:
Now that I think I understand, that most problems come from the outside, I sadly switched back to npm for angular :-/ P.S.: Nevertheless, pnpm saves me about 50% time for every build I make for our nodejs-apps with Gitlab-CI. Just wanted to also give some props and <3 to @zkochan and the pnpm contributors. Thank you guys :-) |
At your guys suggestion I overcame this problem with |
Angular 8 supports pnpm |
pnpm version: 2.10.5
Code to reproduce the issue:
Expected behavior:
Working build.
Actual behavior:
Additional information:
node -v
prints: v10.6.0@angular/compiler-cli
is defined in the package.json.The text was updated successfully, but these errors were encountered: