Skip to content

Error with angualr strict mode #13

@JCLMAQ

Description

@JCLMAQ

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'.
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

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