I'm starting an Angular project from Angular Quickstart seed. I've been creating my own components and now I want to add the Angular2-wizard npm package
I've installed the package using the following command
$ npm install angular2-wizard --save
as it states in its install section and then tried to use the component following all the suggested steps. I can see a folder named after the plugin under node_modules
folder of my project.
When I run the project using npm start
I this 404 error
Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/angular2-wizard
The project has a working demo (angular2-wizard-demo) but doesn't seem to use SystemJS. I've also tried the suggestion of this answer adding the line
'angular2-wizard': 'npm:angular2-wizard/dist/index.js'
under the map config but now I get this 404 errors when the package loads its components
Error loading http://localhost:3000/node_modules/angular2-wizard/dist/src/wizard.component as "./src/wizard.component" from http://localhost:3000/node_modules/angular2-wizard/dist/index.js Stacktrace: (SystemJS) XHR error (404 Not Found) loading http://localhost:3000/node_modules/angular2-wizard/dist/src/wizard.component
This is the app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { FormWizardModule } from 'angular2-wizard';
import { PizzaService } from './services/pizza.service'
@NgModule({
imports: [
BrowserModule,
FormsModule,
FormWizardModule
],
declarations: [ AppComponent ],
providers: [ PizzaService ],
bootstrap: [ AppComponent ]
})
export class AppModule { }
Any hint on how to add this package to my project?