깜놀하는 해므찌로

ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(Standalone[LoginPage])[Store -> Store -> Store -> Store -> InternalStateOperations -> InternalDispatcher -> PluginManager -> PluginManager]: NullInjectorError: No provider for Plug.. 본문

IT

ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(Standalone[LoginPage])[Store -> Store -> Store -> Store -> InternalStateOperations -> InternalDispatcher -> PluginManager -> PluginManager]: NullInjectorError: No provider for Plug..

agnusdei1207 2023. 6. 16. 00:07
반응형
SMALL

import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import {
  provideRouter,
  withEnabledBlockingInitialNavigation,
} from '@angular/router';
import { appRoutes } from './app.routes';
import { HttpClientModule } from '@angular/common/http';
import { NgxsModule } from '@ngxs/store';

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(appRoutes, withEnabledBlockingInitialNavigation()),
    importProvidersFrom(HttpClientModule),
    importProvidersFrom(NgxsModule.forRoot()),
  ],
};

1. provider 에  Injectable 모듈을 명시하지 않아 발생한 문제

2. 제 경우 @ngxs/store 모듈을 등록하지 않아 발생

반응형
LIST