vue-circle-progress
vue-circle-progress copied to clipboard
Not working with runtime-only build
When using this in new Quasar, nothing renders and dev server throws
`[Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
found in
---> <VueCircle> ...`
I found out more packages have this issue and that it should be configured on package level. Package should pre-compile templates before shipping (otherwise I would need to use build with compiler, which is bigger and not good practice). I would submit a PR but I am not sure how to configure it, since I never wrote any Vue plugin.
Hi @panstromek!
Thanks for the issue,
Can you try using the precompile branch, specifically this file?
We ended up copying and customizing the source directly because we needed some more features. When we settle everything I will submit PR ;)
Hi@skinnyjames,
I tried using the file from the precompile branch, but also showed the warning regarding the runtime-only build. Just as a FYI
Same for me, a fix would be much appreciated!
Hi all,
Are you sure you all are using the dist/vue-circle-progress.js in the precompile branch? https://github.com/vrajroham/vue-circle-progress/blob/precompile/dist/vue-circle-progress.js
I'm confused because in the source there is no html and a render function.
Same error here!!!
One way around this is to import the single file vue component from the source of this package
import VueCircle from 'vue2-circle-progress/src/index.vue'
In this case the render function will be created by vue-loader
+1
Still happening. And is breaking jest tests too... T_T Any news on this? Ended up copying the file locally as @panstromek said
Add the following code to webpack if you are using vue
alias: {
'vue$': 'vue/dist/vue.esm.js'
},
If you are using nuxt.js, add an alias to the build in nuxt.config.js.
build: {
extend(config) {
config.resolve.alias['vue'] = 'vue/dist/vue.common'
}
}
One way around this is to import the single file vue component from the source of this package
import VueCircle from 'vue2-circle-progress/src/index.vue'
In this case the render function will be created by vue-loader
Why this isn't in the docs?