Currently in the process of migrating an angular2 app to RC2 and experimenting with the router's version 3 alpha.
Followed the setup provided by the angular docs for routing as demonstrated in the plunker. However, encountering the following errors:
'/@angular/router/index"' is showing no exported member 'provideRouter'
'/@angular/router/index"' is showing no exported member 'RouterConfig'
These errors occur when trying to use the following imports in my app.router.ts file:
import { provideRouter, RouterConfig } from '@angular/router';
It's worth noting that I am using typescript in visual studio with commonjs module format.
Providing the list of dependencies from my packages.json:
"@angular/common": "2.0.0-rc.2",
"@angular/compiler": "2.0.0-rc.2",
"@angular/core": "2.0.0-rc.2",
"@angular/http": "2.0.0-rc.2",
"@angular/platform-browser": "2.0.0-rc.2",
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
"@angular/router": "3.0.0-alpha.3",
"@angular/router-deprecated": "2.0.0-rc.2",
"@angular/upgrade": "2.0.0-rc.2",
"systemjs": "0.19.27",
"core-js": "^2.4.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12",
"angular2-in-memory-web-api": "0.0.12"
Even after setting the angular/route to the npm cdn in my system.config.js like so:
'@angular/router': 'https://npmcdn.com/@angular/[email protected]'
The error still persists.
Experimented with using the alpha.4, alpha.5, and the latest alpha.6 version.
Attempting to resolve the issue, I deleted the node_modules folder and reinstalled via npm.
QUERY:
Seeking assistance to understand why the exported members provideRouter and RouterConfig cannot be located.
Thank you!