solid-plyr
solid-plyr copied to clipboard
Issue with exports from dashjs?
Playing around with this lib and encountered the following error for what looks like a simple setup.
The requested module '/node_modules/dashjs/dist/dash.all.debug.js?v=f211ddad' does not provide an export named 'default'
My imports
import { SolidPlyr } from 'solid-plyr';
import { SourceInfo } from 'plyr';
JSX
<SolidPlyr source={currentSolidPlyrObjectURL()!} />
And finally currentSolidPlyrObjectURL is set to
let si: SourceInfo = {
type: 'video',
sources: [{
src: videoObjectURL,
type: 'video/mp4',
size: 720,
}
]
};
setCurrentSolidPlyrObjectURL(si);
I have the same problem, did you manage to figure out the workaround?
I got the same exact issue. Looks like the problematic import is in the index.ts file of the createDashPlyr folder.
Is there any update or workaround for this problem?
I am also getting a similar issue as well.

did any one find a fix for this issue
@Omar0Gamal I just went back to using the Plyr library according to the Youtube embed documentation: https://github.com/sampotts/plyr#youtube.
type PlayerProps = {
videoId: Accessor<string>
}
export const PlayerComponent: Component<PlayerProps> = (props: PlayerProps) => {
return (
<div class="player-container">
<div class="plyr__video-embed" id="player" data-plyr-provider="youtube" data-plyr-embed-id={props.videoId()} />
</div>
);
};
someone actually help please!
seme here seems that this package is obsolete