Coder Social home page Coder Social logo

Comments (6)

SevenOutman avatar SevenOutman commented on May 20, 2024

@afuno You are supposed to use dist/vue-aplayer.min.js rather than any js files in src.

If you are using npm and ES modules, you should import vue-aplayer as described here.

If you are not familiar with npm-based frontend development, you can just add a <script> tag in your template file (e.g. html file) like this:

<script type="text/javascript" "src="//unpkg.com/vue-aplayer/dist/vue-aplayer.min.js" />

Hope this helps.

from vue-aplayer.

afuno avatar afuno commented on May 20, 2024

@SevenOutman I use as an ES module.

from vue-aplayer.

SevenOutman avatar SevenOutman commented on May 20, 2024

@afuno I see. Did you set up your webpack to use vue-loader to process .vue files?
You can find an example config at my webpack.config.js:Line 15

from vue-aplayer.

afuno avatar afuno commented on May 20, 2024

@SevenOutman The problem arises from pure Rails 5.1.4. Together with Rails was installed Webpack(er). I have no problem with any other installed package.

from vue-aplayer.

SevenOutman avatar SevenOutman commented on May 20, 2024

@afuno So you mean you didn’t do anything with webpack, including configuring it to be capable to work with Vue(which you SHOULD do), right?

If so, check out the link in my previous comment, or refer to Vue docs to see what you are supposed to do with webpack so that it can work with Vue correctly.

from vue-aplayer.

SevenOutman avatar SevenOutman commented on May 20, 2024

Should be fixed in 1.0.2 update

from vue-aplayer.

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.