Comments (6)
@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.
@SevenOutman I use as an ES module.
from vue-aplayer.
@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.
@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.
@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.
Should be fixed in 1.0.2 update
from vue-aplayer.
Related Issues (20)
- 请问播放歌词时一直报key重复的错误是怎么回事?
- 自动播放失效
- 改变动态绑定数据时,音频会暂停重置 HOT 5
- 引用本地音乐的时候控制台显示[Vue-APlayer] NotSupportedError: The element has no supported sources. HOT 7
- Display currentTime stops music from playing
- 怎么集成这个插件进行二次开发
- 单音频异步请求,报错,但是音频能播放,Invalid prop: custom validator check failed for prop "music". HOT 5
- How can i hide shuffle option?
- 没有安装 hls.js 会有一个警告错误 HOT 1
- 来个侧边抽屉
- 想对播放列表进行删除该怎么做
- 该组件能不能在vue3+ts环境下运行? HOT 1
- 动态更改音乐的src无效 HOT 3
- chrome 中播放m3u8 无效
- ReferenceError: document is not defined HOT 1
- Dependency Dashboard
- lrc文件url,乱码 HOT 1
- 切换路由,改变变量导致播放停止重置,找到解决办法了 HOT 1
- 谷歌浏览器文件读取不到size
- 怎么把歌词(.lrc)文件引入进来
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-aplayer.