Giter Site home page Giter Site logo

Duplicate Vue.js code about vue-plyr HOT 8 CLOSED

redxtech avatar redxtech commented on July 19, 2024
Duplicate Vue.js code

from vue-plyr.

Comments (8)

horoscop avatar horoscop commented on July 19, 2024 1

@sharq1 is right, could you please fix this @redxtech ?

Thanks!

from vue-plyr.

dominik-bln avatar dominik-bln commented on July 19, 2024 1

Importing Vue in index.js should likely not happen and also automatically registering on the global instance is a bit problematic. Usually this is handled with something like Vue.use(VuePlyr). See here for more details:

https://alligator.io/vuejs/creating-custom-plugins/#adding-capabilities

from vue-plyr.

sharq1 avatar sharq1 commented on July 19, 2024

Looks like it's 4.0.0 problem only, as 3.0.0 dist file has less than 400 lines total.

from vue-plyr.

redxtech avatar redxtech commented on July 19, 2024

from vue-plyr.

sharq1 avatar sharq1 commented on July 19, 2024

Hi @redxtech
Thank you for looking at this.
I think I know what my problem with registering is...
I'm using default Rails assets pipeline which makes your lib break at require. Solution would be to use webpacker gem. Nothing that you can do I guess :)

from vue-plyr.

irazasyed avatar irazasyed commented on July 19, 2024

Created a PR based on @dominik-bln's suggestion. Hopefully, it'll be merged soon. Ref: #31. Open for suggestions, will make changes accordingly if required.

This issue has been bothering me as well :P

from vue-plyr.

redxtech avatar redxtech commented on July 19, 2024

A PR has been proposed to fix this. I'll take a look and see if it works today.

from vue-plyr.

redxtech avatar redxtech commented on July 19, 2024

Just requested a few changes from the PR from @irazasyed and when they are implemented I will merge.

from vue-plyr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.