-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adsbygoogle is not defined #143
adsbygoogle is not defined #143
Comments
Could you provide a reproduction sample on codesandbox? |
preview.js import '~~/.nuxt-storybook/storybook/preview.js'
import Vuetify from 'vuetify'
import colors from 'vuetify/es5/util/colors'
import 'vuetify/dist/vuetify.min.css' // all the css for components
const vuetifyConfig = new Vuetify({
customVariables: ['~/assets/variables.scss'],
optionsPath: './vuetify.options.js',
treeShake: true,
theme: {
dark: false,
themes: {
dark: {
teal: colors.amber,
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3
}
}
}
})
export const decorators = [
(_) => {
return {
vuetify: vuetifyConfig,
template: `
<v-app>
<v-main>
<v-container fluid>
<story />
</v-container>
</v-main>
</v-app>`
}
}
] main.js
But I'm not declaring an google-adsense in the stories file. |
nuxt.config.js - module modules: [
// https://go.nuxtjs.dev/pwa
'@nuxtjs/pwa',
[
'@nuxtjs/google-adsense',
{
id: `ca-pub-${process.env.ADSENSE_KEY}`
}
]
], |
I see, |
Oh, so is there no other way but to wait until the update is done? // nuxt.config.js
storybook: {
modules: false,
...
} the phenomenon continues... |
The only workaround before the update is to remove |
ㅜㅜ Thank you for your help. I hope it will be updated soon! |
i used
nuxtjs version is 2.14.5
@nuxtjs/storybook version is 2.2.2
console error message
![image](https://user-images.githubusercontent.com/34546950/95594560-12120b80-0a86-11eb-8756-d9f1116e2df6.png)
Is there any way to use @nuxtjs/Google-Adsense in the @nuxtjs/storybook?
The text was updated successfully, but these errors were encountered: