Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not Found 404 error on importing the module #43

Open
nickornotto opened this issue Jul 18, 2018 · 0 comments
Open

Not Found 404 error on importing the module #43

nickornotto opened this issue Jul 18, 2018 · 0 comments

Comments

@nickornotto
Copy link

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 { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant