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
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Created using CLI and --routing flag, and also style=scss.
ng new some-project --style=scss --routing
The problem happens when running:
ng serve --aot
(works fine without --aot)
The log given by the failure.
Normally this include a stack trace and some more information.
webpack: bundle is now VALID.
webpack: bundle is now INVALID.
The build keeps showing webpack: bundle is now INVALID. after it finishes, and then rebuilds the bundle again, and so on and so on.
Mention any other details that might be useful.
I think the core problem is that the Angular CLI is monitoring dist for changes. There was another issue #2502 about how uploading files to dist/assets/ was causing an app rebuild. Maybe both issues are duplicates of #2425, although I'm not 100% sure.
In this case, I suspect changes to dist/ngfactory are causing the rewrite, although I'm not sure why directly writing to dist for the other files works normally, because ng serve without --aot is still working fine, only updating when there's a real change (I didn't test making changes in dist itself though, this might be still broken).
Thanks! We'll be in touch soon.
The text was updated successfully, but these errors were encountered:
Meligy
changed the title
ng watch --aot keeps invalidating & rebuilding bundle infinitelyng serve --aot keeps invalidating & rebuilding bundle infinitely
Oct 7, 2016
@jtsom I'm closing this as duplicate now. Can you please renamed #2418 to something ng serve specific? I'd appreciate that, as it'll make it easier to search for later. Thanks.
OS?
Windows 8.1 x64
Versions.
Repro steps.
Created using CLI and
--routing
flag, and alsostyle=scss
.The problem happens when running:
(works fine without
--aot
)The log given by the failure.
The build keeps showing
webpack: bundle is now INVALID.
after it finishes, and then rebuilds the bundle again, and so on and so on.Mention any other details that might be useful.
I think the core problem is that the Angular CLI is monitoring
dist
for changes. There was another issue #2502 about how uploading files todist/assets/
was causing an app rebuild. Maybe both issues are duplicates of #2425, although I'm not 100% sure.In this case, I suspect changes to
dist/ngfactory
are causing the rewrite, although I'm not sure why directly writing todist
for the other files works normally, becauseng serve
without--aot
is still working fine, only updating when there's a real change (I didn't test making changes indist
itself though, this might be still broken).The text was updated successfully, but these errors were encountered: