Closed moorthi07 closed 7 years ago
It work up to the latests minor versions of angular 2. angular 4 is still in development. Try switching angulars deps to ^2.4.0.
see #31
Hi @Asone, any news on when there will be a ui-router for angular 4?
@efistasija : I have no idea, i'm not part of the original team. I just suggested a PR a few months ago to update a bit the demo, that's mainly all.
Apparently there's chances that this demo will be abandoned according to the comments on this page : #26
https://github.com/ui-router/angular/releases/tag/1.0.0-beta.6 works with ng 4.1.3
latest beta.6 release is compatible with Angular 4
Note: The package ui-router-ng2
has been renamed to @uirouter/angular
This demo will likely be replaced by something involving the Angular-CLI
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\ch okidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"} ) npm WARN ng2-restangular@0.1.30 requires a peer of @angular/core@^2.0.0 but none was installed. npm WARN ng2-restangular@0.1.30 requires a peer of @angular/platform-browser@^2. 0.0 but none was installed. npm WARN ng2-restangular@0.1.30 requires a peer of @angular/http@^2.0.0 but none was installed. npm WARN @angular/core@2.4.10 requires a peer of zone.js@^0.7.2 but none was ins talled. npm WARN @angular/platform-browser@2.4.10 requires a peer of @angular/common@2.4 .10 but none was installed. npm WARN ui-router-ng2@1.0.0-beta.4 requires a peer of @angular/common@^2.3.1 bu t none was installed. npm WARN ui-router-ng2@1.0.0-beta.4 requires a peer of @angular/core@^2.3.1 but none was installed. npm WARN ui-router-ng2@1.0.0-beta.4 requires a peer of @angular/router@^3.3.1 bu t none was installed. .....................................
ERROR in Error encountered resolving symbol values statically. Only initialized variables and constants can be referenced because the value of this variable is needed by the templa te compiler (position 15:22 in the original .ts file), resolving symbol ROUTES in D:/.............s/node_modules/@angular/router/src/router_config_loader.d.ts, resolving sy mbol makeRootProviders in D:/..............s/nodemodules/ui-router-ng2/lib/uiRoute rNgModule.d.ts, resolving symbol UIRouterModule.forRoot in D:/...................s/node modules/ui-router-ng2/lib/uiRouterNgModule.d.ts, resolving symbol AppModule in D:/................s/src/app/app.module.ts, resolving symbol AppModule in D:/..............s/src/app/app.module.ts
ERROR in ./~/ui-router-ng2/lib/uiRouterNgModule.js Module not found: Error: Can't resolve '@angular/router/src/router_config_loader' in 'D:\,,,,,,s\node_modules\ui-router-ng2\lib' @ ./~/ui-router-ng2/lib/uiRouterNgModule.js 6:0-66 @ ./~/ui-router-ng2/lib/index.js @ ./src/app/app.module.ts @ ./src/app/index.ts @ ./src/main.ts