mazipan / vue-google-adsense

💰 Vue.js Google Adsense Component with InFeed and InArticle Ads support
https://mazipan.github.io/vue-google-adsense/
MIT License
257 stars 42 forks source link

runtime-only build of Vue #2

Closed binaamir closed 6 years ago

binaamir commented 6 years ago

Hi I am trying to use this plugin when I place the component in my code i got the following warning in console and my ads are not displaying:

[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 --->

at src\components\Businesses\BusinessesList.vue at src\components\Businesses\Business.vue
at src\components\Main.vue at src\App.vue I am building PWA. Please help me how to fix this issue.
mazipan commented 6 years ago

Can you show me how you using this code @binaamir ? because I already use this Plugin in several projects and work well.

lucassbgomes commented 6 years ago

I had the same problem, after much reading, testicles, I managed to solve. In my case, I was using quasar + pwa + vue-google-adsense. For some reason, in webpack quasar (./config/index.js) does not have the alias that vue models have:

'vue $': 'vue / dist / vue.esm.js'

After inserting this line in webapck.base.conf.js, it worked 100%. I hope this helps.