-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Angular fails to build #5682
Comments
Same issue here - very discouraging. OS : darwin x64
npm : 6.14.12
nx : Not Found
@nrwl/angular : 12.3.3
@nrwl/cli : 12.3.3
@nrwl/cypress : 12.3.3
@nrwl/devkit : 12.3.3
@nrwl/eslint-plugin-nx : 12.3.3
@nrwl/express : Not Found
@nrwl/jest : 12.3.3
@nrwl/linter : 12.3.3
@nrwl/nest : 12.3.3
@nrwl/next : Not Found
@nrwl/node : 12.3.3
@nrwl/react : Not Found
@nrwl/schematics : Not Found
@nrwl/tao : 12.3.3
@nrwl/web : Not Found
@nrwl/workspace : 12.3.3
@nrwl/storybook : Not Found
@nrwl/gatsby : Not Found
typescript : 4.2.4``` |
I'm seeing this on a new Angular 12 + Nest project as well. Kind of aggravating. I'd love to know what is the difference here because |
Hey! :) Thank you for raising the issue. I'll investigate to find a fix that will allow this to work with no problems. However, in the meantime, there is a workaround:
You should now be able to run P.S. The initial install of additional packages when you add Angular support to a workspace that already has Webpack 4 in it, will find Webpack already installed, and will not install Webpack 5. Therefore, deleting the |
So, in theory, if we were to add Angular first and NestJS second then it should work without even needing to delete |
Yes, that is correct. I've tried that flow locally and it works perfectly. |
Based on the two solutions provided above: I'm going to close this issue. If the problem persists and these solutions do not work, please let us know! |
@Coly010 The workarounds are nice, but I would argue this isn't shouldn't be closed because the bug still exists. Users creating new angular + nest projects from the nx schematic will not be able to use Is it not possible to update the schematic to automatically apply the |
Hi @jadengis ! However, I'll take a look and see if we can change the Angular+Nest schematic to install Angular then Nest. If you're interested, you could also take a stab at creating a PR that makes this change :) |
according to that: nrwl/nx#5682 (comment)
Workaround doesn't work with yarn @Coly010 😢 Upgrading from 12.3.6 to 12.3.5 resulted in the main webpack (root of node_modules) being v4 again not 5 anymore...
|
@uspasojevic96 I'm noticing the same, myself still. I'm following your |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Fresh Angular app does not build with
nx build app-name
Expected Behavior
Fresh Angular app should be able to build when it's been freshly generated
Steps to Reproduce
nx build
for the generated Angular appFailure Logs
Environment
Edit
I don't know why
nx report
isn't detecting nx:The text was updated successfully, but these errors were encountered: