-
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
[1.5.0-rc.5] Failed to load templateUrl path when enabling hmr #8234
Comments
@aitboudad heya, can you try doing |
@filipesilva it's work with |
@filipesilva for the build part |
I'll make a PR to add this information to the HMR docs. I think you're getting |
another issue I've got when using lazy load route:
|
That one seems very similar to what's reported in #8207, but I haven't been able to reproduce it yet. Can you tell me exactly how to reproduce it please? Also would like to know if it only happens with HMR on. |
added a simple example ng-cli-19994#5c2e355f and I also I checked several scenario
if I removed the hmr code in the main.js script with |
It's not const bootstrap = () => platformBrowserDynamic().bootstrapModule(AppModule);
bootstrap(); and you'll noticed that the |
Thanks a lot for setting up that repro, it really helps to debug what's going on 👍 |
Partially address angular#8234
Partially address angular#8234
I'm trying your repo and this is what I get:
Investigating further. |
I also tried your repro but with CLI 1.4.9, Angular packages at 4.4.6 and TypeScript at 2.3.2:
So all of these worked before, but are not working with 1.5. This is a bug and will be fixed. |
I'm working on these errors (and others) in #8215. It looks like there's some problem in the bootstrap replacement as you mentioned.
|
@filipesilva related to your comments here #8207 (comment) and in this issue, what is the issue? I have tried, with or without aot and with or without hmr. no option works for me. Is it a cli issue or angular's? |
@asadsahi it is a CLI issue. Have you tried #8234 (comment)? (replacing the bootstrap) |
@filipesilva with angular 5.0.0-rc.8 & angular-cli 1.5.0-rc.6 tried following: aot + hmr = doesn't work I have tried with both bootstrap options: const bootstrap = () => platformBrowserDynamic().bootstrapModule(AppModule); OR function bootstrap () { getting these errors:
Do you want me to try any other option? |
I can confirm that (locally) the fixes I have in #8215 together with changing the bootstrap as I mention in #8234 (comment) make all the scenarios that previously worked in 1.4.9 also work in 1.5.0 (#8234 (comment)). I'm still working out the kinks out of that PR but it should be good to go for the next release. Thanks for bearing with me while I debug this. |
@filipesilva should the fix be in angular-cli v1.5.0-rc.7 ? can't see any difference. Also with cli v1.5.0+ is following bootstrap a permanent change? |
@asadsahi it's not merged yet, but should be merged for the next release. You should be able to use |
@aitboudad @asadsahi the fix for this is coming out as |
@filipesilva initial step seems to be faster I build initial step "ng s --sm=false" in 65seconds. BUT unfortunatly when I edit file the recompilation takes still:
otherwise for your information now I can build with --no-aot in 21seconds without this error: |
@filipesilva I can confirm that everything is working now 👍 , the only remark I have is the incremental update is a little bit slow for AOT mode |
@istiti @aitboudad with CLI 1.5 and Angular 5, Would you be interested in submitting a CPU profile showing where the time is spent on your rebuilds? I can use that to figure out bottlenecks. I put detailed instructions on how you can do that here: #8259 |
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
)Versions.
Repro steps.
The log given by the failure.
The text was updated successfully, but these errors were encountered: