vue-countup-v2
vue-countup-v2 copied to clipboard
Unexpected Identifier in nuxt
just ran into this myself, any update @divyadave95 ?
@divyadave95 this is because this does not support server-side mode, change your plugin file from countup.js
to countup.client.js
and your problem should be solved, you can close this @xlsdg
I think a nuxt.js plugin example on the readme.md would be nice
here is mine which is working fine
import Vue from 'vue'
import ICountUp from 'vue-countup-v2/dist/VueCountUp'
Vue.component('ICountUp', ICountUp)
sadly doesn't work any longer
For those who need a workaround, I had succeeded by adding both 'countup.js', and 'vue-countup-v2' in nuxt.config.js
build: {
/*
** You can extend webpack config here
*/
transpile: ['countup.js', 'vue-countup-v2'],
extend(_config, _ctx) {}
},
For those who need a workaround, I had succeeded by adding both 'countup.js', and 'vue-countup-v2' in nuxt.config.js
build: { /* ** You can extend webpack config here */ transpile: ['countup.js', 'vue-countup-v2'], extend(_config, _ctx) {} },
It works,thx!
This Works for nuxt:
build: { transpile: ['countup.js', 'vue-countup-v2'], extend(_config, _ctx) {} },