-
Notifications
You must be signed in to change notification settings - Fork 70
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
Runtime config: Cannot read property 'find' of undefined #141
Comments
any update ? |
same problem |
hi @jeanmatthieud , the workaround work for me: publicRuntimeConfig: {
GTM_ID: process.env.GTM_ID,
},
gtm: {},
plugins: [
'~/plugins/gtm.client.ts', // should be loaded in client only,
], then in the export default function ({ $gtm, $config }) {
$gtm.init($config.GOOGLE_TAG_MANAGER_ID)
} |
Any update on this? |
Maybe this will save someones time ;)
Also not the best solution, but worked for multiple containers, added plugin to insert js in head and noscript in body:
|
When I'm using the runtimeConfig property, I get an error on server.js (without callstack):
Config:
Nuxt: 2.15.8
Gtm Module: 2.4.0
The text was updated successfully, but these errors were encountered: