Closed Dudedex closed 4 years ago
:tada: This issue has been resolved in version 7.0.2 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
It also does not work with 7.0.2
still the same error when building with 7.0.2
ERROR in node_modules/videogular2/compiled/src/core/vg-media/i-media-element.d.ts(17,27): error TS2304: Cannot find name 'AudioTrackList'. node_modules/videogular2/compiled/src/core/vg-media/i-media-element.d.ts(139,27): error TS2304: Cannot find name 'VideoTrackList'. node_modules/videogular2/compiled/src/core/vg-media/vg-media-element.d.ts(5,27): error TS2304: Cannot find name 'AudioTrackList'. node_modules/videogular2/compiled/src/core/vg-media/vg-media-element.d.ts(42,18): error TS2304: Cannot find name 'VideoTrackList'.
Did you tried downloading the project from scratch and doing npm install
?
The project works for me.
removing the node_modules
and installing it again via npm install => also checked the version in the node_modules folder to be sure that it is the 7.0.2 version
Try removing also any "metadata" file and package-lock.json, it might have some old dependencies there.
so, it's a rabbit hole but the gist is (the links I'm about to send are in reverse chronological order for a reason):
we start here: https://github.com/microsoft/TSJS-lib-generator/pull/802
then, 20 days later: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/43335
yesterday: https://github.com/microsoft/TypeScript/issues/38544
the refs: https://github.com/DefinitelyTyped/DefinitelyTyped/search?q=AudioTrackList&type=Issues
TL;DR: Don't use TS 3.9.2 for now. Anything below is fine
Description
Can not build angular project that uses videogular2 (since today May 13th 2020) (Version 7.0.1)
Expected Behavior
Build should work as before
Actual Behavior
When building with angular cli 8.3.26 the following message shows up
ERROR in node_modules/videogular2/compiled/src/core/vg-media/i-media-element.d.ts(17,27): error TS2304: Cannot find name 'AudioTrackList'. node_modules/videogular2/compiled/src/core/vg-media/i-media-element.d.ts(139,27): error TS2304: Cannot find name 'VideoTrackList'. node_modules/videogular2/compiled/src/core/vg-media/vg-media-element.d.ts(5,27): error TS2304: Cannot find name 'AudioTrackList'. node_modules/videogular2/compiled/src/core/vg-media/vg-media-element.d.ts(42,18): error TS2304: Cannot find name 'VideoTrackList'.
Steps to Reproduce
Remove node_modules => build angular project => error occurs