找不到ngfactory /找不到模块

时间:2017-07-17 16:47:22

标签: angular command-line-interface universal

Angular 4 App with Universal(ng new myapp) 我试图退出A4应用程序迁移到Angular通用

tsconfig.json

 "angularCompilerOptions": {
      "genDir": "./dist/ngfactory",
      "entryModule": "./src/app/app.module#AppModule"
  }

运行后" npm run start"

"scripts": {
    "prestart": "ng build --prod && ngc",
    "start": "ts-node src/server.ts"
  },

我得到一个错误我不知道错误thoo。

 ERROR in F:/aMoneyworkz/moneyworkz-ng/src/$$_gendir/app/Home/home.component.ngfactory.ts (17,21): Cannot find module './slider/s
lider.component.ngfactory'.

ERROR in F:/aMoneyworkz/moneyworkz-ng/src/$$_gendir/app/Home/home.component.ngfactory.ts (19,22): Cannot find module './three-ac
tion-btn/three-action-btn.component.ngfactory'.

ERROR in F:/aMoneyworkz/moneyworkz-ng/src/$$_gendir/app/Home/home.component.ngfactory.ts (21,22): Cannot find module './feat-par
tners/feat-partners.component.ngfactory'.

ERROR in F:/aMoneyworkz/moneyworkz-ng/src/$$_gendir/app/Home/home.component.ngfactory.ts (17,21): Cannot find module './slider/s
lider.component.ngfactory'.

ERROR in F:/aMoneyworkz/moneyworkz-ng/src/$$_gendir/app/Home/home.component.ngfactory.ts (19,22): Cannot find module './three-ac
tion-btn/three-action-btn.component.ngfactory'.

ERROR in F:/aMoneyworkz/moneyworkz-ng/src/$$_gendir/app/Home/home.component.ngfactory.ts (21,22): Cannot find module './feat-par
tners/feat-partners.component.ngfactory'.

ERROR in ./src/$$_gendir/app/Home/home.component.ngfactory.ts
Module not found: Error: Can't resolve './slider/slider.component.ngfactory' in 'F:\aMoneyworkz\moneyworkz-ng\src\$$_gendir\app\
Home'
 @ ./src/$$_gendir/app/Home/home.component.ngfactory.ts 15:0-58
 @ ./src/$$_gendir/app/app.component.ngfactory.ts
 @ ./src/$$_gendir/app/app.module.ngfactory.ts
 @ ./src/main.ts
 @ multi ./src/main.ts

ERROR in ./src/$$_gendir/app/Home/home.component.ngfactory.ts
Module not found: Error: Can't resolve './three-action-btn/three-action-btn.component.ngfactory' in 'F:\aMoneyworkz\moneyworkz-n
g\src\$$_gendir\app\Home'
 @ ./src/$$_gendir/app/Home/home.component.ngfactory.ts 17:0-79
 @ ./src/$$_gendir/app/app.component.ngfactory.ts
 @ ./src/$$_gendir/app/app.module.ngfactory.ts
 @ ./src/main.ts
 @ multi ./src/main.ts

ERROR in ./src/$$_gendir/app/Home/home.component.ngfactory.ts
Module not found: Error: Can't resolve './feat-partners/feat-partners.component.ngfactory' in 'F:\aMoneyworkz\moneyworkz-ng\src\
$$_gendir\app\Home'
 @ ./src/$$_gendir/app/Home/home.component.ngfactory.ts 19:0-73
 @ ./src/$$_gendir/app/app.component.ngfactory.ts
 @ ./src/$$_gendir/app/app.module.ngfactory.ts
 @ ./src/main.ts
 @ multi ./src/main.ts

请一些人帮助我....

0 个答案:

没有答案