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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悶[BUG]: HMR Ivy fails #1537
Comments
After investigation we know that HMR works only with AOT true for Angular 9. @markwhitfeld @arturovt how detect aot is enabled for Angular 8, Angular 9 (ivy/view engine)? |
Can't check if it's working, unfortunately, but you could check if the static property is defined on the module: const isJIT = Array.isArray(NgxsModule['__annotations__']);
const isAOT = isJIT === false; |
@markwhitfeld @arturovt @splincode splincode I'm using Angular 9.0.7 I've implemented everything using your hmr-plugin, but HMR doesn't seem to work...
Whenever I edit the code, a hot update gets generated but somehow it doesn't get applied to the view. Nothing changes. No reload, no updated injected, nothing. Is this supposed to work? How do I enable AOT in A9? Isn't it enabled by default? |
It looks like the Angular team is not going to support HMR |
@splincode |
The HMR works like a charm with Vue and you don't even have to install or configure anything, it's built-in. |
Anyway, so if understand this correctly, this should work even with Ivy when AOT is enabled. Something must be wrong with my local setup. I'll investigate, but any help would be appreciated :). I followed the @ngxs/hmr-plugin tutorial and it's not working. |
if you find a bug and send us a PR we will be grateful |
Good news, NGXS v3.7 was released last week. PS. There is an alternative to use the storage plugin to get a similar experience. |
Relative: angular/angular#35265
The text was updated successfully, but these errors were encountered: