-
-
Notifications
You must be signed in to change notification settings - Fork 40
module not found: '@angular/router.ngfactory' when use 'tns run android --bundle --env.aot --env.uglify' #630
Comments
@miroslavaivanova I am also seeing this? Seemed to show up ever since the latest .1 release? |
@sis0k0 any insight on this one? You may be doing your talk at ngTalks right this very minutes so whenever/if you see this later :) |
Same 😢 - hit it initially. Then change a file and it's gone, then it pops back up again. I removed a comment from the |
This can also be replicated with a simple angular project with routing included. Run "ng serve --aot" (or edit your package.json) and modify a file and et voilá. Same crappy error, I have the entire afternoon trying to deal with this with no avail. |
Thank you, @darkguy2008! Reported in angular/angular-cli#11835. Downgrade to |
Downgrade sort of works. Ends up resulting in every other file change actually triggering livesync so doesn't work quite as well as it did prior whatever has caused the whole world to break here. |
@darkguy2008 @NickIliev we are still seeing every other file change triggering livesync with 6.1.1 pinned angular version, you all seeing the same? Do we know if that for sure is angular related? first view file save trggers just fine... 2nd one fails... 3rd one wins... 4th one fails...5th one wins, etc. /cc @sis0k0 with the following deps:
and devDeps:
Possible that ngtools/webpack also needs to be pinned and if so anyone certain that pinning it will make livesync work as normal? |
I can confirm that pinning |
@NathanWalker the issue with the Here is my
And here is the test applicaiton I've used to test the livesync. Angular are releasing a fix for the If you are still experiencing troubles with livesync on every other time, please post on what device/platform you are hitting this one - I guess it would be a candidate for opening a new issue as it seems to be a different case not related to this one. |
We'll try this and report back today - thank you for that 👍 |
@NickIliev Unfortunately yeah same thing (every other view/style file change triggers livesync only). Perhaps I can do a brief hangout with you tomorrow to show you? iOS Simulator iPhoneX 11.4 |
Additionally @NickIliev I cloned your issue repo here and ran the project and can see exactly the same livesync problem so it's broken there as well.
Repro:
And nothing happens. Save again and it will livesync. Save again and same thing so exactly the problem I describe above. |
Hi guys Working with an old project, I found a combination that worked. Here's my package.json file without any issues and using --aot:
|
@darkguy2008 referring to 2 different issues here - I may need to break the issue I mention out as it's different than description here. Refer to these comments specifically: |
I went ahead and created separate issue to track what I'm referring to here to avoid confusion: |
@NathanWalker alright, thanks for your input. Actually that issue was fixed with @angular/compiler-cli 6.1.6 released today, so I'd say that part of the issue could be already solved. |
@darkguy2008 thank you for the update! @miroslavaivanova @NathanWalker @bradmartin I can confirm that indeed the latest version of @angular/compiler-cli (6.1.6) has resolved the issue. (tested via this app) To update the projects to use the latest version of |
Tell us about the problem
the following exception will throw:
Local environment
Project data
The text was updated successfully, but these errors were encountered: