Skip to content

using Ionic Serve custom script to run Hot Module Reload (HMR) in 4.9.0 not working  #3838

@hiepxanh

Description

@hiepxanh

Description:

I was able to make angular hot reload with this angular cli wiki angular stories configure hmr. If I run npm run hmr everything just work fine.

I follow this issue #3819 to run custom script ionic serve matching with npm run hmr. but it just Waiting for connectivity with npm...

Steps to Reproduce:
step 1: follow this tutorial on new ionic project: angular cli wiki angular stories configure hmr.

step 2: make some change on ionic project follow this issue #3819.

// ionic.config.json is generated.
{
  "name": "test",
  "integrations": {},
  "type": "custom"
}
// package.json

"scripts": {
+    "ionic:serve": "npm run hmr",
}

Output:

image

it still waiting something

image

image

My ionic info:


Ionic:

   ionic (Ionic CLI)             : 4.10.1 (C:\Users\hiepx\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0
   @angular-devkit/build-angular : 0.12.3
   @angular-devkit/schematics    : 7.1.4
   @angular/cli                  : 7.1.4
   @ionic/angular-toolkit        : 1.2.3

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.1, (and 20 other plugins)

System:

   NodeJS : v10.13.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.7.0
   OS     : Windows 10

Other Information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions