Comments (2)
已经解决该问题
这是因为,引用的插件在node_modules里,并不在vue-cli的es6编译范围内,所以语法报错,修改方法:
修改webpack.base.conf.js 中的代码为:
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/[email protected]@vue-awesome-countdown')]
}
参考链接:https://www.cnblogs.com/cynthia-wuqian/p/7928228.html
from vue-awesome-countdown.
非常感谢反馈,近期更新一版,兼容ES5
建议使用Vue2.5.0+
建议使用Vue CLI 3
https://cli.vuejs.org/zh/
npm install -g @vue/cli
OR
yarn global add @vue/cli
from vue-awesome-countdown.
Related Issues (20)
- Update documentation to fit Vue 2.6 slots syntax HOT 7
- startCountdown() restart doesn't work HOT 4
- IE10 不兼容 HOT 1
- npm install vue-awesome-countdown (Dependent package errors) HOT 3
- timeObj.s not precise HOT 1
- finised instead of finished HOT 1
- stoped instead of stopped HOT 1
- finish event not working
- finish and autostart false not working HOT 1
- Sometimes the countdown is deducted by 2 seconds HOT 5
- switchCountdown not really stopping the timer HOT 3
- How to reset the timer without restarting it? HOT 3
- Start event not called with auto start false HOT 1
- Start event not called with autoStart false HOT 1
- Timer not starts when using dynamic start-time and end-time HOT 1
- ie11报错 HOT 1
- how to import and use in nuxt? HOT 1
- 修改绑定的时间戳不更新
- Is it possible to count up? HOT 2
- 目前支持Vue3吗 HOT 2
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-awesome-countdown.