You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://next.angular.io/guide/ivy comes up if you Google how to enable/disable Ivy in existing project. It states that changing angularCompilerOptions is sufficient for that.
However, it doesn't mention the fact that when Angular CLI creates a project with --experimental-ivy it adds postinstall hook in package.json that runs ivy-ngcc. It then compiles all dependencies (as far as I understand) for the new compiler. And when you think you've disabled Ivy you are still in fact using it for external libraries, like Angular Material, which seems to be widely incompatible with Ivy.
Well, that PR is in master, whereas Ivy can be enabled in current stable release. IMHO docs should've been updated with the release with that PR. But as of now, it causes confusion for newcomers (like me).
Activity
alan-agius4 commentedon Apr 5, 2019
Hi @mrnateriver, that is because the post install hook is no longer required with the latest changes.
NGCC is now integreated as part of the build pipeline.
Kindly see: angular/angular-cli#13968
mrnateriver commentedon Apr 5, 2019
Well, that PR is in
master, whereas Ivy can be enabled in current stable release. IMHO docs should've been updated with the release with that PR. But as of now, it causes confusion for newcomers (like me).But anyway, thanks for the heads-up!
alan-agius4 commentedon Apr 5, 2019
The guide is for version 8. Hence the next in the sub domain of the documention.
angular-automatic-lock-bot commentedon Sep 14, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.