solid-plyr icon indicating copy to clipboard operation
solid-plyr copied to clipboard

Issue with exports from dashjs?

Open senkwe opened this issue 3 years ago • 7 comments

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);

senkwe avatar Jan 17 '22 12:01 senkwe

I have the same problem, did you manage to figure out the workaround?

vadimegorov13 avatar Jun 11 '22 22:06 vadimegorov13

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?

HendrikWDev avatar Jun 27 '22 21:06 HendrikWDev

I am also getting a similar issue as well.

DashJSSolidPlyrIssue

gokel166 avatar Jul 20 '22 07:07 gokel166

did any one find a fix for this issue

Omar0Gamal avatar Oct 21 '22 12:10 Omar0Gamal

@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>
    );
};

HendrikWDev avatar Nov 07 '22 10:11 HendrikWDev

someone actually help please!

Vertixx01 avatar Dec 14 '22 13:12 Vertixx01

seme here seems that this package is obsolete

TheElegantCoding avatar Feb 25 '24 05:02 TheElegantCoding