Angular e2e fails with 'Angular can't be found' because of Redux enhancer?

40 views Asked by At

I have an angular application that is boilerplate, nothing meaningful, literally the 'welcome' template.

I'm trying to run ng e2e but it fails, checking the chrome tab console before it disappears show me the same error I get when I have redux dev tools enabled but I don't have the extension in my browser.

The code in my app.module:

export class AppModule {
  constructor(devTools: DevToolsExtension, ngRedux: NgRedux<IAppState>) {
    let enhancers = isDevMode() ? [devTools.enhancer()] : [];
    ngRedux.configureStore(rootReducer, INITIAL_STATE, [], enhancers);
  }
}

Is there any way I could make e2e work and also have this enabled or should I just give up on redux dev tools?

0

There are 0 answers