These are chat archives for AngularClass/angular2-webpack-starter

19th
May 2017
Deepak Kanyan
@zap-deepak
May 19 2017 04:56
Hi buddy
ERROR in default is not an NgModule when i am trying to use ng build
it working fine with ng serve but when i try to use ng build it gives error
as i search a lot about this issue it is just because of aot compiler
Deepak Kanyan
@zap-deepak
May 19 2017 07:31
let me make you more clear understanding about my issue my complete project is working fine with ng serve but now it time to make it live so thats why i need a build of this, so i used ng build then it show me error ERROR in default is not an NgModule then again i removed it from all module where i used it then it show me error Uncaught (in promise): Error: Cannot find 'default' in './profile/profile.module' Error: Cannot find 'default' in './profile/profile.module' at checkNotEmpty
Patryk
@spartanPAGE
May 19 2017 07:48
Hi, i've got a quick question
how can i import from root using this particular starter? (that i've been with lately, with a sh*tload of ../../)
for example, i'd like to change import { CurrentUserService } from '../../services/current-user.service' to `import { CurrentUserService } from 'app/services/current-user.service' or something similar
import { CurrentUserService } from 'app/services/current-user.service'
Patryk
@spartanPAGE
May 19 2017 07:55
anyone?