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

agnusdei·2023년 7월 5일

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()),
  ],
};

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

profile
DevSecOps, Pentest, Cloud(OpenStack), Develop, Data Engineering, AI-Agent

0개의 댓글