NuxtN
Nuxt6mo ago
8 replies
Kumzy

Nuxt script error in devtools

Hello,

I have an error internal server in devtools for nuxt/scripts -> can't convert undefined to object

How could I find the issue of that?

My config is like that

runtimeConfig: {
    public: {
      scripts: {
        googleAnalytics: {
          id: "",
        },
        clarity: {
          id: "",
        },
        googleTagManager: {
          id: "",
        },
      },
    },
  },
modules: [
    "@nuxt/scripts",
  ],
scripts: {
    enabled: true,
    // debug: true,
    registry: {
      googleTagManager: true,
      clarity: true,
      googleAnalytics: true,
    },
  },
Was this page helpful?