-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng serve --aot fail after file change #11835
Comments
the same, v6.1.2 is broken. |
I have exactly the same problem, and reverting |
Hey, This issue can also reproduce as follows: Steps:ng new ngApp --routing && cd ngApp Error:
|
I have exactly the same problem with Angular CLI: 6.1.3 |
Added to the top of our backlog |
I was unable to replicate this with the following versions. Can you try with the versions listed below? For existing projects, please ensure that
|
@clydin i used this:
also i used ng server without bazel, my tsconfig
serve config
command : |
As a test, every watched file in a new project was changed twice with both TS 2.7.2 and TS 2.9.2; and was unable to reproduce. Two files were also changed 5 times each (a component and a module) with the same outcome. To fully diagnose the issue, a minimal reproduction or exact steps to trigger the issue will be needed in light of the inability to reproduce. |
@clydin can u try this #11835 (comment), |
Thanks. Traced the issue to this PR in angular itself: angular/angular#25335 |
Same issue confirmed, and the only solution for AOT so far is back to use |
any progress? |
For me this issue even with 6.1.1 (6.1.0 all was fine) |
@deerua Can you share your |
Sure
|
After some changes we have 183 ERRORS
and all material components |
As a temporary workaround, you can fix Note also that CLI and @angular-devkit/build-angular can be at their latest version. |
thx @clydin |
The same issue after update to 6.1.2. |
Been fighting with this for about a week now. I can confirm this package.json fixes all issues (made with
|
This is the output that I get /usr/local/lib npm ERR! peer dep missing: @angular/core@^5.0 || ^4.0 || ^2.0, required by d3-ng2-service@2.2.0 |
C:\Users\a\AppData\Roaming\npm |
Same here (Angular 6.1.10):
Ouput:
|
Workaround angular-cli@6.0.0 |
I have the same issue with angular-cli@6.2.5 and compiler@6.1.10 It fails with error What's unusual here we use an inline template, not standalone. Might be this a problem? #12260 (comment) this helped me out |
In our case, we were optimizing the ng serve which threw similar error message. Instead of:
Use:
|
This fixes errors like ERROR in ./src/app/components/... Module not found: Error: Can't resolve '...' in '...' as decribed here: angular/angular-cli#11835
angular/quickstart#365 (comment) |
ERROR in ./src/main.ts |
… ngfactory & ngsummary files (angular#25604) Workaround was added in angular#25335. It was necessary for .ngfactory & .ngsummary files to have proper AMD module names starting with @angular when building angular downstream from source using Bazel. The underlying issue has been resolved in the compiler and these files now get proper AMD module names without the need for this workaround. The workaround had an unexpected consequence angular/angular-cli#11835 which is fixed by its removal. PR Close angular#25604
Issue still exists when
|
I have the same issue as @artuska with the same specs. Angular CLI: 7.3.3
Node: 8.12.0
OS: win32 x64
Angular: 7.2.6
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.13.3
@angular-devkit/build-angular 0.13.3
@angular-devkit/build-optimizer 0.13.3
@angular-devkit/build-webpack 0.13.3
@angular-devkit/core 0.7.5
@angular-devkit/schematics 0.7.5
@angular/cdk 7.3.3
@angular/cli 7.3.3
@angular/flex-layout 7.0.0-beta.23
@angular/material 7.3.3
@ngtools/json-schema 1.1.0
@ngtools/webpack 7.3.3
@schematics/angular 7.3.3
@schematics/update 0.13.3
ng-packagr 4.7.1
rxjs 6.4.0
typescript 3.2.4
webpack 4.29.0 |
@JWBrownie If you have this type of error probably you have upgraded from Angular 5 to 6 or 7. Replace |
See also #13721 |
@artuska VERIFIED. Worked for me. Thank you from NYC. |
Still having this issue on Angular 7.2 |
@andrewantar try removing optimization flags in angular.json |
@gatsbyz Set them to false and also tried removing the params, and still same error.. |
@andrewantar And you've tried removing this from your tsconfig.json -> "rootDir": "./src" |
If your
|
It works like black magic mate!!!!!!! |
I am still getting error in Angular 7.2.15 while building using --aot flag. Normal build is working fine.
It is not recognizing any of the kendo grid properties. My kendo grid html looks like this:
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Angular CLI: 6.1.2
Node: 10.0.0
OS: win32 x64
Angular: 6.1.2
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker
Package Version
@angular-devkit/architect 0.7.2
@angular-devkit/build-angular 0.7.2
@angular-devkit/build-optimizer 0.7.2
@angular-devkit/build-webpack 0.7.2
@angular-devkit/core 0.7.2
@angular-devkit/schematics 0.7.2
@angular/cdk 6.4.3
@angular/material 6.4.3
@ngtools/webpack 6.1.2
@schematics/angular 0.7.2
@schematics/update 0.7.2
rxjs 6.2.2
typescript 2.9.2
webpack 4.9.2
-->
Repro steps
The log given by the failure
Desired functionality
work as before update
Mention any other details that might be useful
I didn't know where to write, in @angular/compile or here but error showed in cli, so...
This breaking from this fix angular/angular#25335.
Reverting
@angular/compiler
to 6.1.1 workaround for this.I tested without fix, it work as before.
The text was updated successfully, but these errors were encountered: