localhost/:21 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/ng2-file-upload #464

Open
opened 2016-10-25 11:57:23 +00:00 by Klaus-sun · 3 comments
Klaus-sun commented 2016-10-25 11:57:23 +00:00 (Migrated from github.com)

Failed to load resource: the server responded with a status of 404 (Not Found)
localhost/:21 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/ng2-file-upload
Error: XHR error (404 Not Found) loading http://localhost:3000/ng2-file-upload
at XMLHttpRequest.wrapFn as _onreadystatechange
at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:236:37)
at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:136:47)
at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:304:33)
Error loading http://localhost:3000/ng2-file-upload as "ng2-file-upload" from http://localhost:3000/app/app.module.js
at XMLHttpRequest.wrapFn as _onreadystatechange
at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:236:37)
at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:136:47)
at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:304:33)
Error loading http://localhost:3000/ng2-file-upload as "ng2-file-upload" from http://localhost:3000/app/app.module.js(anonymous function) @ localhost/:21
candycontent.js:3185 refresh: 1.359ms

Failed to load resource: the server responded with a status of 404 (Not Found) localhost/:21 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/ng2-file-upload Error: XHR error (404 Not Found) loading http://localhost:3000/ng2-file-upload at XMLHttpRequest.wrapFn [as _onreadystatechange](http://localhost:3000/node_modules/zone.js/dist/zone.js:647:29) at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:236:37) at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:136:47) at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:304:33) Error loading http://localhost:3000/ng2-file-upload as "ng2-file-upload" from http://localhost:3000/app/app.module.js at XMLHttpRequest.wrapFn [as _onreadystatechange](http://localhost:3000/node_modules/zone.js/dist/zone.js:647:29) at ZoneDelegate.invokeTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:236:37) at Zone.runTask (http://localhost:3000/node_modules/zone.js/dist/zone.js:136:47) at XMLHttpRequest.ZoneTask.invoke (http://localhost:3000/node_modules/zone.js/dist/zone.js:304:33) Error loading http://localhost:3000/ng2-file-upload as "ng2-file-upload" from http://localhost:3000/app/app.module.js(anonymous function) @ localhost/:21 candycontent.js:3185 refresh: 1.359ms
Klaus-sun commented 2016-10-25 11:59:50 +00:00 (Migrated from github.com)

In the angulajs2 has been configured to run the file will not find the file is very confused
My profile is as follows

In the angulajs2 has been configured to run the file will not find the file is very confused My profile is as follows
Klaus-sun commented 2016-10-25 12:00:57 +00:00 (Migrated from github.com)

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { CommonModule } from '@angular/common';//上传相关

/AIP/
import { InMemoryWebApiModule } from 'angular-in-memory-web-api/in-memory-web-api.module';
import { InMemoryDataService } from './api/in-memory-data.service';

/页面控制器和组件控制器/
import { AppComponent } from './app.component';
// import { UPLOAD_DIRECTIVES } from 'ng2-uploader'; //不能用
import { HeroDetailComponent } from './hero-detail.component';
import { LoginComponent } from './Signin/app.signin';
import { HomeComponent } from './Home/app.home';
import { FileUploader } from 'ng2-file-upload';
import { choicequestionComponent } from './src/addquestions/choicequestion.component';//单选题
import { repeatquestionsComponent } from './src/addquestions/repeatquestions.component';//跟读题
import { displaypageComponent } from './src/addquestions/displaypage.component';//展示页题
import { addpaperComponent } from './src/addpaper/addpaper.component';//组卷
/服务与路由/
import { HeroService } from './hero.service';
import { routing } from './app.routing';
import {DraggableDirective} from './drop.service'; //拖放指令测试
// import {Drop} from './tool/Drop';不能用
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule,
CommonModule,
routing
],
declarations: [
AppComponent,
LoginComponent,
HomeComponent,
HeroDetailComponent,
choicequestionComponent,
repeatquestionsComponent,
displaypageComponent,
addpaperComponent,
FileUploader,
DraggableDirective

],
providers: [
HeroService
],
// entryComponents: [Drop],
bootstrap: [ AppComponent ]
})
export class AppModule { }

import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { CommonModule } from '@angular/common';//上传相关 /_AIP_/ import { InMemoryWebApiModule } from 'angular-in-memory-web-api/in-memory-web-api.module'; import { InMemoryDataService } from './api/in-memory-data.service'; /_页面控制器和组件控制器_/ import { AppComponent } from './app.component'; // import { UPLOAD_DIRECTIVES } from 'ng2-uploader'; //不能用 import { HeroDetailComponent } from './hero-detail.component'; import { LoginComponent } from './Signin/app.signin'; import { HomeComponent } from './Home/app.home'; import { FileUploader } from 'ng2-file-upload'; import { choicequestionComponent } from './src/addquestions/choicequestion.component';//单选题 import { repeatquestionsComponent } from './src/addquestions/repeatquestions.component';//跟读题 import { displaypageComponent } from './src/addquestions/displaypage.component';//展示页题 import { addpaperComponent } from './src/addpaper/addpaper.component';//组卷 /_服务与路由_/ import { HeroService } from './hero.service'; import { routing } from './app.routing'; import {DraggableDirective} from './drop.service'; //拖放指令测试 // import {Drop} from './tool/Drop';不能用 @NgModule({ imports: [ BrowserModule, FormsModule, HttpModule, CommonModule, routing ], declarations: [ AppComponent, LoginComponent, HomeComponent, HeroDetailComponent, choicequestionComponent, repeatquestionsComponent, displaypageComponent, addpaperComponent, FileUploader, DraggableDirective ], providers: [ HeroService ], // entryComponents: [Drop], bootstrap: [ AppComponent ] }) export class AppModule { }
sushant6309 commented 2017-05-06 17:57:55 +00:00 (Migrated from github.com)

Hi I am also getting the same error.

Hi I am also getting the same error.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#464