Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AaronKoller opened this issue May 29, 2023 · 1 comment

Comments

@AaronKoller
Copy link

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
@nf313743
Copy link

Its seems when the project was upgraded to Angular v14 entryComponents: [CourseDialogComponent] was removed from the master branch, but not 1-start

1-start commit : a6ea7c9
master commit: 01567a0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants