Angular Ivy can't recompile
See original GitHub issueπ bug report
Affected Package
UnknownIs this a regression?
(Please read description first, not sure why the fields are in this order)I also tested 8.2.0-next-0, for this one my app was recompiling but no changes could be seen.
Description
Testing Ivy (8.2.0-next-1) to see the benefits of the faster recompilation during development, my app loads fine at first, but then after it recompiles on small changes (example: modify html text), it brakes returning errors related to the content of the page ; from on page to an other, the error can be different.π₯ Exception or Error
On one page:
On another page:
π Your Environment
Angular Version:
Angular CLI: 8.2.0-next.0
Node: 12.3.1
OS: win32 x64
Angular: 8.2.0-next.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
... service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.802.0-next.0
@angular-devkit/build-angular 0.802.0-next.0
@angular-devkit/build-optimizer 0.802.0-next.0
@angular-devkit/build-webpack 0.802.0-next.0
@angular-devkit/core 8.2.0-next.0
@angular-devkit/schematics 8.2.0-next.0
@angular/cdk 8.0.2
@angular/cli 8.2.0-next.0
@angular/language-service 8.0.3
@angular/material 8.0.2
@angular/pwa 0.12.4
@ngtools/webpack 8.2.0-next.0
@schematics/angular 7.2.4
@schematics/update 0.802.0-next.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.35.3
{
"name": "",
"version": "1.9.3",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~8.2.0-next.1",
"@angular/cdk": "~8.0.1",
"@angular/common": "~8.2.0-next.1",
"@angular/compiler": "~8.2.0-next.1",
"@angular/core": "~8.2.0-next.1",
"@angular/forms": "~8.2.0-next.1",
"@angular/material": "^8.0.1",
"@angular/platform-browser": "~8.2.0-next.1",
"@angular/platform-browser-dynamic": "~8.2.0-next.1",
"@angular/pwa": "0.12",
"@angular/router": "~8.2.0-next.1",
"@angular/service-worker": "~8.2.0-next.1",
"@auth0/angular-jwt": "^2.1.0",
"@types/randomcolor": "^0.5.2",
"chart.js": "^2.8.0",
"core-js": "^2.5.4",
"hammerjs": "^2.0.8",
"moment": "^2.24.0",
"randomcolor": "^0.5.4",
"rxjs": "~6.5.2",
"tslib": "^1.9.0",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.802.0-next.0",
"@angular/cli": "~8.2.0-next.0",
"@angular/compiler-cli": "~8.2.0-next.1",
"@angular/language-service": "8.2.0-next.1",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.4.5"
}
}
Anything else relevant?
Note that stopping the server and restarting with ng serve
will rebuild the app properly without any error.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Can't compile the Angular application with Ivy enabled
I cloned my angular application from remote and installed the dependencies. Then I tried to build an application locally using ng serveΒ ...
Read more >Understanding Angular Ivy Library Compilation | lacolaco/tech
In this post, I will explain how to compile Angular libraries with Ivy, which is now possible in Angular v11.1, and its details....
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 >Angular with Ivy β Build performance review
In this article, we're going to dive into bundle-size and compilation speed insights. We have seen various benchmarks and charts onΒ ...
Read more >Upcoming improvements to Angular library distribution
Angular's new rendering and compilation pipeline, Ivy, has been the developers' default experience for the past year.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing as weβre tracking this in the root cause issue #31654
@alxhub Hereβs a sample that exhibits the issue! https://github.com/magneticflux-/angular-issue31512-repro