I recently started experimenting with angular2 and redux. However, I encountered an issue while trying to bootstrap my main app by injecting NgRedux and NgReduxRouter:
There was an error loading http://localhost:4200/ng2-redux/index.js as "ng2-redux" from http://localhost:4200/main.js
This is how my main app code looks like:
import { bootstrap } from '@angular/platform-browser-dynamic';
import { enableProdMode } from '@angular/core';
import { HTTP_PROVIDERS } from '@angular/http';
import { AppComponent, environment } from './app/';
import { appRouterProviders } from './app/app.routes';
import {UserService} from './app/services/user.service';
import {NgRedux} from "ng2-redux";
import {NgReduxRouter} from "ng2-redux-router";
import {ACTION_PROVIDERS} from "./app/actions/index";
import {EPIC_PROVIDERS} from "./app/epics/index";
if (environment.production) {
enableProdMode();
}
bootstrap(AppComponent,[NgRedux, NgReduxRouter, ACTION_PROVIDERS,EPIC_PROVIDERS,appRouterProviders, UserService, HTTP_PROVIDERS]);
Can anyone point out what am I doing wrong here?