I am trying to import this @brightcove/react-player-loader package into my typescript project but its not running due to type error.

I have tried overriding the module type in my custom.d.ts file like this but I couldnt get it to work:
import '@brightcove/react-player-loader';
declare module '@brightcove/react-player-loader' {
var x: any;
export = x;
}
Any ideas how can I resolved this error? Thanks

I actually ran into this same error recently as well.
You can create a declaration file that fixes the error by doing the following:
This should get rid of the error you are experiencing.