Impossible to build / start from fresh generation, if webpack+typescript+uirouter
Change generator options to ngrouter and it works !
Error Message & Stack Trace
ERROR in ./src/app/routes.ts
(17,14): error TS2339: Property 'urlRouterProvider' does not exist on type 'UIRouter'.
ERROR in ./src/app/index.ts
(16,45): error TS2345: Argument of type '{ states: Ng2StateDeclaration[]; configClass: typeof MyUIRouterConfig; }' is not assignable to parameter of type 'RootModule'.
Object literal may only specify known properties, and 'configClass' does not exist in type 'RootModule'.
ERROR in ./~/ui-router-ng2/lib/uiRouterNgModule.js
Module not found: Error: Can't resolve '@angular/router/src/router_config_loader' in '/home/ludoo/dev/projects/fountain/node_modules/ui-router-ng2/lib'
@ ./~/ui-router-ng2/lib/uiRouterNgModule.js 6:0-66
@ ./~/ui-router-ng2/lib/index.js
@ ./src/app/index.ts
@ ./src/index.ts
Description
Impossible to build / start from fresh generation, if webpack+typescript+uirouter
Change generator options to ngrouter and it works !
Error Message & Stack Trace
Config
Copy the content from
.yo-rc.json
:Environment
Node.js v6.9.5 linux 4.4.0-71-generic (Ubuntu) yo 1.8.5 npm 4.4.1
It happens also on windows7