Closed Lowell130 closed 3 years ago
Sorry, wrong documentation, it should remove the .default
:
if (isClient) {
Vue.use(require('vue-script2'));
Vue.use(require('vue-google-adsense/dist/Adsense.min.js'));
Vue.use(require('vue-google-adsense/dist/InArticleAdsense.min.js'));
Vue.use(require('vue-google-adsense/dist/InFeedAdsense.min.js'));
}
When add all the info the main.ts file and run develop i see current error in the console:
Uncaught TypeError: Cannot read property 'install' of undefined
Here is the config that I use:
and i used in my template (with correct date, sure)