angular: 404 - Extra slash in import /router//bundles/router.umd.js
I’m submitting a … (check one with “x”)
[ X ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior 404 Error http://localhost:3000/node_modules/@angular/router//bundles/router.umd.js
Angular seems to be adding an extra / after router and before bundles folder
Expected/desired behavior
I expect the path to be only one slash
Reproduction of the problem https://github.com/sethdorris/practice_angular2
just clone my github repo and “npm start”
What is the expected behavior? The error does not occur when you remove the bootstrapping of the application with APP_ROUTER_PROVIDERS
What is the motivation / use case for changing the behavior? I am trying to use Angular Router
Please tell us about your environment:
- Angular version: 2.0.0-rc.2
- Angular Router Version. 3.0.0-alpha.7
- Browser: Chrome 51.0.2704.103 m (64-bit)
- Language: TypeScript 1.8.10
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 21 (2 by maintainers)
This is an issue with your SystemJS config: https://github.com/sethdorris/practice_angular2/blob/master/systemjs.config.js#L36
Removed the
/beforebundlesThis is no longer a issue. Please issue npm uninstall @angular/router --save and then npm install @angular/router --save to install the package again. It works for me now.
Idk why but my
@angular/routerhad nobundlefolder so I resorted to usingpackIndexjust forrouter.– Update
fixes this manually.
Yeah and you need to remove it from the package list.
RC4 package.json (latest as of now) file breaks the Tour of Heroes tutorial.
You get the following error:
platform-browser.umd.js:1900EXCEPTION: Template parse errors: Can't bind to 'routerLink' since it isn't a known native propertyEdit: Overlooked importing
ROUTER_DIRECTIVEStoapp.componentas well as adding it as a directive to theAppComponentclass.I dont think it’s a right choice. As it was mentioned above, I’m trying to follow Tour of Heroes tutorial. Before adding routing it works perfectly fine. And just after routing stuff this error occurs.
Sad, but it hasn’t worked for me. After uninstall/install I’ve got a bunch of errors about routerLink isn’t a native property.