Open Zhangzijing opened 5 years ago
main.js:
import VueTimers from 'vue-timers'
Vue.use(VueTimers)
export default function install(Vue) {
// this code will cause the warning report above
Vue.config.optionMergeStrategies.timers = Vue.config.optionMergeStrategies.methods
Vue.mixin(VueTimers)
}
@Kelin2025 I do not know what's mean and how to resolve it.
Any word on this. I am getting the same thing when using an array for the timers var instead of a standard object. Per the docs an array is acceptable.
Invalid value for option "timers": expected an Object, but got Array.
timers: [ { name: 'log', time: 10000, autostart: true, repeat: true, immediate: true}, { name: 'sample', time: 5000, autostart: false, repeat: true, immediate: true} ],
Can you provide instructions on how to fix it.
mycode: