Skip to content

Not Found 404 error on importing the module #43

@nickornotto

Description

@nickornotto

I installed the spinner in my Angular 5 app. It's been installed into node_modules folder

I imported the modeul but when I'm trying to add it to imports I'm getting an error:

Error: "Fetch error: 404 Not Found
  Instantiating http://localhost:port/ng4-loading-spinner
  Loading http://localhost:port/app/app.module.js
  Loading client/main.js"

My app component:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import { HttpModule } from '@angular/http'
import { Ng4LoadingSpinnerModule } from 'ng4-loading-spinner';

import { AppComponent } from './app.component';

@NgModule({
	declarations: [
		AppComponent
	],
	imports: [
		BrowserModule,
		FormsModule,
		HttpModule,
		ReactiveFormsModule,
		Ng4LoadingSpinnerModule.forRoot() // Gives an error described above
	],
	providers: [],
	bootstrap: [AppComponent]
})
export class AppModule { }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions