ngrx-course icon indicating copy to clipboard operation
ngrx-course copied to clipboard

Error with angualr strict mode

Open JCLMAQ opened this issue 4 years ago • 0 comments

Hello, I get the following error type when running Angular in strict mode (one among others):

src/app/courses/course/course.component.ts:41:9 - error TS2322: Type 'Observable<Course | undefined>' is not assignable to type 'Observable<Course>'. Type 'Course | undefined' is not assignable to type 'Course'. Type 'undefined' is not assignable to type 'Course'.

Do you know how to fix this error

JCLMAQ avatar Jan 11 '21 13:01 JCLMAQ