question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Angular] postinstall ngcc does not work

See original GitHub issue

Current Behavior

Running the postinstall script from the default project created with npx create-nx-workspace does nothing. I tested this in a ng new project and there it works. I am using pnpm as my package manager.

Expected Behavior

Running ngcc like in a basic Angular project create with ng new

Steps to Reproduce

npx create-nx-workspace

Failure Logs

No failures

Environment

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
AgentEndercommented, Nov 5, 2021

The next feature release of Nx (13.2) should include angular 13 support, which eliminates the need for ngcc. I’m going to close this since we are tracking angular 13 support with PR #7161

1reaction
coronabytescommented, Oct 29, 2021

ok, however i’d suggest you reopen the bug, because it seems like nx angular is not 100% compatible with pnpm and should not be an option then

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running ngcc in postinstall. Angular CLI should not ... - GitHub
my point is that if files are pre-generated shouldn't ngcc not run at all? Neither ngcc nor the CLI are in a position...
Read more >
What are the reasons for adding angular postinstall "ngcc ...
Actually, ngcc's job isn't package validation. It takes non-Ivy libraries and generates files which Ivy understands.
Read more >
Angular 9: ngcc in postinstall script... : r/Angular2 - Reddit
I just finished upgrading from Angular 8 to Angular 9. ... The postinstall script you added is not manually run, it automatically runs...
Read more >
Fails to build with NGCC | Angular - EJ 2 Forums | Syncfusion
I'm getting errors at runtime if I ignore ngcc build with the date time picker. If I do a postinstall ngcc I get...
Read more >
Angular Ivy
Ivy is the code name for Angular's next-generation compilation and rendering pipeline. With the version 9 release of Angular, the new compiler and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found