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

Error with angualr strict mode #13

Open
JCLMAQ opened this issue Jan 11, 2021 · 0 comments
Open

Error with angualr strict mode #13

JCLMAQ opened this issue Jan 11, 2021 · 0 comments

Comments

@JCLMAQ
Copy link

JCLMAQ commented Jan 11, 2021

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

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

1 participant