인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

meon take님의 프로필 이미지
meon take

작성한 질문수

Angular, 앵귤러 100분 핵심강의

라우팅

라우팅 강의 내용 중 아래와 같이 에러 납니다.

작성

·

263

0

    ERROR in app/app.component.html:9:3 - error NG8001: 'router-outlet' is not a known element:

    1. If 'router-outlet' is an Angular component, then verify that it is part of this module.

    2. If 'router-outlet' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

    

    9   <router-outlet></router-outlet>

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    

      app/app.component.ts:5:16

        5   templateUrl: './app.component.html',

                         ~~~~~~~~~~~~~~~~~~~~~~

        Error occurs in the template of component AppComponent.

답변 1

0

안녕하세요?

명령창에서 ng serve 를 실행했을때 발생하는 에러인가요?

meon take님의 프로필 이미지
meon take

작성한 질문수

질문하기