FountainJS / generator-fountain-webapp

Yeoman 'fountain' generator to start a webapp
http://fountainjs.io
MIT License
967 stars 67 forks source link

option uirouter failed #194

Open ludoo0d0a opened 7 years ago

ludoo0d0a commented 7 years ago

Description

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

Config

Copy the content from .yo-rc.json:

{
  "generator-fountain-angular2": {
    "version": "1.0.0",
    "props": {
      "framework": "angular2",
      "modules": "webpack",
      "js": "typescript",
      "ci": "",
      "css": "scss",
      "resolved": "/home/ludoo/.nvm/versions/node/v6.9.5/lib/node_modules/generator-fountain-webapp/node_modules/generator-fountain-angular2/generators/app/index.js",
      "namespace": "fountain-angular2:app",
      "_": [],
      "sample": "techs",
      "router": "uirouter"
    }
  }
}

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

sprucify commented 7 years ago

Confirmed, impossible to build

micfan commented 7 years ago

will be fixed in #201