question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node_modules/@angular/router-deprecated/ 404 (Not Found)

See original GitHub issue

I’m just following tour of heroes. npm installed everything fresh 30 mins ago (with no errors) and here is what I have:

On https://angular.io/docs/ts/latest/tutorial/toh-pt5.html Once I add

@RouteConfig([ { path: '/heroes', name: 'Heroes', component: HeroesComponent } ])

I get the following in my console:

zone.js:101 GET http://localhost:3000/node_modules/@angular/router-deprecated/ 404 (Not Found)scheduleTask @ zone.js:101ZoneDelegate.scheduleTask @ zone.js:336Zone.scheduleMacroTask @ zone.js:273(anonymous function) @ zone.js:122send @ VM1894:3fetchTextFromURL @ system.src.js:1156(anonymous function) @ system.src.js:1739ZoneAwarePromise @ zone.js:584(anonymous function) @ system.src.js:1738(anonymous function) @ system.src.js:2764(anonymous function) @ system.src.js:3338(anonymous function) @ system.src.js:3605(anonymous function) @ system.src.js:3990(anonymous function) @ system.src.js:4453(anonymous function) @ system.src.js:4705(anonymous function) @ system.src.js:408ZoneDelegate.invoke @ zone.js:323Zone.run @ zone.js:216(anonymous function) @ zone.js:571ZoneDelegate.invokeTask @ zone.js:356Zone.runTask @ zone.js:256drainMicroTaskQueue @ zone.js:474ZoneTask.invoke @ zone.js:426 (index):20 Error: Error: XHR error (404 Not Found) loading http://localhost:3000/node_modules/@angular/router-deprecated(…)

If I copy all app/app.component.ts (v2) from tutorial page, I get completely the same. Win 10, Chrome 49. Please help. Thank you!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
Foxandxsscommented, May 6, 2016

add @angular/router-deprecated along with the others there.

That will tell system.js where to find @angular/router-deprecated when you ask for it and not give a 404

1reaction
dboydorcommented, May 6, 2016

`(function(global) {

// map tells the System loader where to look for things var map = { ‘app’: ‘app’, // ‘dist’, ‘rxjs’: ‘node_modules/rxjs’, ‘angular2-in-memory-web-api’: ‘node_modules/angular2-in-memory-web-api’, ‘@angular’: ‘node_modules/@angular’ };

// packages tells the System loader how to load when no filename and/or no extension var packages = { ‘app’: { main: ‘main.js’, defaultExtension: ‘js’ }, ‘rxjs’: { defaultExtension: ‘js’ }, ‘angular2-in-memory-web-api’: { defaultExtension: ‘js’ }, };

var packageNames = [ ‘@angular/common’, ‘@angular/compiler’, ‘@angular/core’, ‘@angular/http’, ‘@angular/platform-browser’, ‘@angular/platform-browser-dynamic’, ‘@angular/router’, ‘@angular/testing’, ‘@angular/upgrade’, ];

// add package entries for angular packages in the form ‘@angular/common’: { main: ‘index.js’, defaultExtension: ‘js’ } packageNames.forEach(function(pkgName) { packages[pkgName] = { main: ‘index.js’, defaultExtension: ‘js’ }; });

var config = { map: map, packages: packages }

// filterSystemConfig - index.html’s chance to modify config before we register it. if (global.filterSystemConfig) { global.filterSystemConfig(config); }

System.config(config);

})(this);

`

Read more comments on GitHub >

github_iconTop Results From Across the Web

vendor/@angular/router-deprecated 404 (Not Found)
npm i @angular/router-deprecated. I have chekced the node-module folder and i have it there right now, and i can simply do
Read more >
@angular/router-deprecated - npm
Start using @angular/router-deprecated in your project by running `npm i @angular/router-deprecated`. There are 103 other projects in the ...
Read more >
Update Angular to v15
This topic provides information about updating your Angular applications to Angular version 15. For a summary of this information and the step-by-step ...
Read more >
angular/core
Implements Angular's core functionality, low-level services, and utilities. Defines the class infrastructure for components, view hierarchies, ...
Read more >
Angular compiler options
The template compiler can then use the error nodes to report an error if these symbols are used. If the client of a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found