Skip to content

HMR not work when enableIvy is trueΒ #31528

Closed

Description

@ofirrifo

🐞 bug report

Description

The HMR (hot module replacement) stop working when I set enableIvy to true.

πŸ”¬ Minimal Reproduction

  1. Create any Angular CLI project
  2. Configure project with Hot Module Replacement
  3. add to tsconfig.app
     "angularCompilerOptions": {
         "enableIvy": true
       }
    
  4. start project
  5. change any scss file

Now when enableIvy is true the page refresh and then I see a blank page.
then I manually refresh the page and everything is ok.

Note when enableIvy is set to false it works as expected.
-->

🌍 Your Environment

Angular Version:
Angular CLI: 8.1.1
Node: 12.3.1
OS: darwin x64
Angular: 8.1.1
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package Version

@angular-devkit/architect 0.801.1
@angular-devkit/build-angular 0.801.1
@angular-devkit/build-ng-packagr 0.801.1
@angular-devkit/build-optimizer 0.801.1
@angular-devkit/build-webpack 0.801.1
@angular-devkit/core 8.1.1
@angular-devkit/schematics 8.1.1
@ngtools/json-schema 1.1.0
@ngtools/webpack 8.1.1
@schematics/angular 8.1.1
@schematics/update 0.801.1
ng-packagr 5.3.0
rxjs 6.5.2
typescript 3.4.5
webpack 4.35.2

Activity

  1. added this to the needsTriage milestone on Jul 12, 2019
  2. kukjevov commented on Aug 1, 2019

    @kukjevov
    Contributor

    This might be related angular/angular-cli#15225

  3. filipesilva commented on Aug 8, 2019

    @filipesilva
    Contributor

    Heya, I'm closing because #31916 (comment) indicates this is a tracked bug and there is a fix on the way.

  4. angular-automatic-lock-bot commented on Sep 15, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions