Just downloaded your new release and run install and looks like upgrade to v6 on angular is not complete as it does not compile. My npm version is 6.0.1
C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular>npm run hmr
[email protected] hmr C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular ng serve --host 0.0.0.0 --port 4200 4201 --hmr -e=hmr
Project '4201' could not be found in workspace.
Error: Project '4201' could not be found in workspace.
at Workspace.getProject (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules@angular-devkit\core\src\workspace\workspace.js:83:19)
at Architect.getBuilderConfiguration (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules@angular-devkit\architect\src\architect.js:96:41)
at MergeMapSubscriber._loadWorkspaceAndArchitect.pipe.operators_1.concatMap [as project] (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules@angular\cli\models\architect-command.js:77:55)
at MergeMapSubscriber._tryNext (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules\rxjs\internal\operators\mergeMap.js:122:27)
at MergeMapSubscriber._next (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules\rxjs\internal\operators\mergeMap.js:112:18)
at MergeMapSubscriber.Subscriber.next (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules\rxjs\internal\Subscriber.js:103:18)
at TapSubscriber._next (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules\rxjs\internal\operators\tap.js:109:26)
at TapSubscriber.Subscriber.next (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules\rxjs\internal\Subscriber.js:103:18)
at MergeMapSubscriber.notifyNext (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules\rxjs\internal\operators\mergeMap.js:141:26)
at InnerSubscriber._next (C:\Dev\Demo\Base\Demo.v.5.4.0\Demo\angular\node_modules\rxjs\internal\InnerSubscriber.js:30:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] hmr: ng serve --host 0.0.0.0 --port 4200 4201 --hmr -e=hmr
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] hmr script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Vlad\AppData\Roaming\npm-cache_logs\2018-05-10T16_22_46_617Z-debug.log
3 Answer(s)
-
0
package.json needs to be updated to "hmr": "ng serve --host 0.0.0.0 --port 4200 --hmr",
-
0
@vladsd thanks we will fix this. We most of the time use "npm start" instead of hmr build.
-
0
By the way, here is the related github issue <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/issues/1142">https://github.com/aspnetzero/aspnet-ze ... ssues/1142</a>.