vue-circle-progress icon indicating copy to clipboard operation
vue-circle-progress copied to clipboard

Not working with runtime-only build

Open panstromek opened this issue 6 years ago • 11 comments

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.

panstromek avatar Apr 23 '18 16:04 panstromek

Hi @panstromek!

Thanks for the issue,

Can you try using the precompile branch, specifically this file?

skinnyjames avatar Apr 27 '18 15:04 skinnyjames

We ended up copying and customizing the source directly because we needed some more features. When we settle everything I will submit PR ;)

panstromek avatar Apr 27 '18 18:04 panstromek

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

BerniWittmann avatar May 26 '18 14:05 BerniWittmann

Same for me, a fix would be much appreciated!

raLaaaa avatar Jun 20 '18 09:06 raLaaaa

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.

skinnyjames avatar Jun 20 '18 16:06 skinnyjames

Same error here!!!

Tropicalista avatar Aug 29 '18 05:08 Tropicalista

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

ventralnet avatar Oct 12 '18 18:10 ventralnet

+1

wrabit avatar Oct 29 '18 17:10 wrabit

Still happening. And is breaking jest tests too... T_T Any news on this? Ended up copying the file locally as @panstromek said

Pijuli avatar Jan 22 '19 12:01 Pijuli

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'
        }
    }

garchomp-game avatar Apr 22 '19 06:04 garchomp-game

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?

justice47 avatar May 16 '19 11:05 justice47