Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

option uirouter failed #194

Open
ludoo0d0a opened this issue Apr 12, 2017 · 2 comments
Open

option uirouter failed #194

ludoo0d0a opened this issue Apr 12, 2017 · 2 comments

Comments

@ludoo0d0a
Copy link

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
Copy link

Confirmed, impossible to build

@micfan
Copy link

micfan commented Jun 7, 2017

will be fixed in #201

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants