localhost/:21 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/ng2-file-upload #464
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
In the angulajs2 has been configured to run the file will not find the file is very confused
My profile is as follows
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 { }
Hi I am also getting the same error.