Comments (4)
I ran into the same error message when trying to use @nuxtjs/google-analytics
, however it's just my own silliness.
Snippet from my nuxt.config.js
with the error present:
modules: [
'@nuxtjs/google-analytics', {
id: 'UA-xxx-2'
},
'nuxt-auth',
'@nuxtjs/axios'
],
This is the fix:
When trying to load a module like this, along with the property, it needs to be wrapped in []
to make an array.
modules: [
[ '@nuxtjs/google-analytics', {
id: 'UA-xxx-2'
} ],
'nuxt-auth',
'@nuxtjs/axios'
],
@AlexLomm in your case, try this:
modules: [
[ '@nuxtjs/google-adsense', {
id: '<<< id >>>'
} ]
],
from google-adsense.
Hi. This problem is probably because nuxt couldn't find adsense module. Would you please share nuxt.config.js and also ensuring module is probably installed?
from google-adsense.
Thanks for replying. Here is the nuxt.config.js
:
Also, I've installed the package by running npm install @nuxtjs/google-adsense
. Is there something more I should've done?
from google-adsense.
Did you found a solution ? I have the same error with others modules..
from google-adsense.
Related Issues (20)
- Doesn analyticsUacct supports new GA4?
- useRuntimeConfig is not defined error HOT 3
- Any way to solve page speed (Core Web Vital ) ? HOT 5
- 2.1.0 doesn't seem to work in Nuxt 2.15.8 HOT 3
- Pushing Ads fail when Page Transition is enabled HOT 3
- Runtime config is broken HOT 2
- Type is not assignable to type, and invalid prop... HOT 3
- [README]: `Note: AdSense limits you to a maximum of three (3) ads per page.` is wrong HOT 1
- strange height behavior after ad load HOT 1
- How can we use Partytown to load adsense CDN
- TagError: adsbygoogle.push() error: All ins elements in the DOM with class=adsbygoogle already have ads in them. HOT 18
- Some ads are showing, some are not. HOT 1
- Where to find Adsense docs for "pauseOnLoad" HOT 3
- Dynamic Adsense ID HOT 1
- [Feature request] Integration with partytown
- error for running test mode HOT 1
- Uncaught TagError: adsbygoogle.push() error: Ad client is missing from the slot. HOT 2
- Does it automatically add ads.txt files? HOT 5
- Failed to load resource: the server responded with a status of 403 () HOT 1
- Feature Request: Dynamically Disable Ads for Paid Members HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-adsense.