Skip to content

Object literal may only specify known properties, and 'entryComponents' does not exist in type 'NgModule'. #50

Open
@AaronKoller

Description

@AaronKoller

On the 1-start branch I get the following error when running 'npm start' for the very first time (Master branch compiles alright):

Error: src/app/app.module.ts:79:3 - error TS2345: Argument of type '{ declarations: (typeof CourseDialogComponent | typeof HomeComponent | typeof CourseComponent | typeof LoginComponent | typeof LessonComponent | typeof SafeUrlPipe)[]; imports: (typeof BrowserModule | typeof AppRoutingModule)[]; providers: undefined[]; bootstrap: (typeof AppComponent)[]; entryComponents: (typeof Cou...' is not assignable to parameter of type 'NgModule'.
Object literal may only specify known properties, and 'entryComponents' does not exist in type 'NgModule'.

79 entryComponents: [CourseDialogComponent]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 This seems to resolve itself when you comment out line 79 from app.module.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions