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

Will not compile in strict mode #92

Open
mcalmus opened this issue Apr 14, 2022 · 3 comments
Open

Will not compile in strict mode #92

mcalmus opened this issue Apr 14, 2022 · 3 comments

Comments

@mcalmus
Copy link

mcalmus commented Apr 14, 2022

Description

Describe the issue or new feature.

Example code does not compile with strict mode enabled (the default in at least Angular 11 and above).

Expected Behavior

If this is an issue, document the expected behavior. If this is a feature, delete this block.

Should compile cleanly.

Actual Behavior

If this is an issue, describe the actual behavior. If this is a feature, delete this block.

The following error happens at compile time:

Type 'HTMLVideoElement' is missing the following properties from type 'IMediaElement': audioTracks, msAudioCategory, msAudioDeviceType, msPlayToDisabled, and 10 more.

Steps to Reproduce

Making elements of IMediaElement optional should fix issue.

Attachments

Try to include screenshots for bugs or design assets for enhancements

Image Title
(https://media.giphy.com/media/143vPc6b08locw/giphy.gif)
Image description
@jansgescheit
Copy link

I run into the same issue today

1 similar comment
@wanderdevof
Copy link

I run into the same issue today

@WuglyakBolgoink
Copy link

"dirty" fix:

[vgMedia]="$any(media)"

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

4 participants