PatrickJS-starter icon indicating copy to clipboard operation
PatrickJS-starter copied to clipboard

Uncaught TypeError: o.HmrState is not a function

Open ayubali opened this issue 10 years ago • 7 comments

when i build this application for prod mode npm run build:prod is executed without error then i run command "npm run server:prod" it is alo executed with out error. but in broser console it is showing app.service.ts:7Uncaught TypeError: o.HmrState is not a function

ayubali avatar Jun 21 '16 20:06 ayubali

what version of angular/angular2-hmr do you have or did you download a fresh version of the repo

PatrickJS avatar Jun 21 '16 20:06 PatrickJS

+1 (cloned the repo this evening)

unsafecode avatar Jun 21 '16 21:06 unsafecode

is everyone using npm 3?

PatrickJS avatar Jun 21 '16 21:06 PatrickJS

or on windows

PatrickJS avatar Jun 21 '16 21:06 PatrickJS

can you revert this change be keep the angular2-hmr version https://github.com/AngularClass/angular2-webpack-starter/commit/24a19a9f05b1840a28cfa5a013e2e9d254f4f43f#diff-d1535ca6497b532e66b6b853f99dc1f7L174

from helpers.root('node_modules/angular2-hmr/prod.js') to helpers.root('config/modules/angular2-hmr-prod.js')

PatrickJS avatar Jun 21 '16 21:06 PatrickJS

@gdi2290 Works now (npm 3.8.7 on Windows)

unsafecode avatar Jun 21 '16 21:06 unsafecode

kk done via https://github.com/AngularClass/angular2-webpack-starter/commit/3ddddee3923f0b2a473bdd7364ec639a99c22f7b

PatrickJS avatar Jun 21 '16 21:06 PatrickJS