Open asipple1 opened 2 months ago
I have created our own declare module to bypass this.
brightcove-react-player-loader.d.ts
declare module '@brightcove/react-player-loader' {
import * as React from 'react';
export interface ReactPlayerLoaderProps {
accountId: string;
playerId: string;
videoId?: string | number | undefined;
onSuccess?: (success: any) => void;
onFailure?: (success: any) => void;
}
const ReactPlayerLoader: React.ComponentType<ReactPlayerLoaderProps>;
export default ReactPlayerLoader;
}
When attempting to
import ReactPlayerLoader from @brightcove/react-player-loader
using the latest version (1.5), I encountered the following error: Internal server error: Failed to resolve import "brightcove/react-player-loader". However, after downgrading to version1.4.2
, the issue is resolved, and everything works as expected. Upon further investigation, I observed that version 1.5 appears to be missing the dist directory, which is present in version 1.4.2.Screenshot of version 1.5 in my node_modules
Screenshot of version 1.4.2 in my node_modules