NuxtN
Nuxt12mo ago
17 replies
Sagar Kapoor

nuxt-umami module not found during typecheck despite being installed

I'm running into an issue with nuxt-umami in my project. When running pnpm lint (which runs nuxt typecheck && eslint .), I'm getting this error:

ERROR: Could not load nuxt-umami. Is it installed?

However, nuxt-umami is definitely installed in my package.json:
{
  "dependencies": {
    "nuxt-umami": "^3.1.1"
    // ... other deps
  }
}


My nuxt.config.ts has the proper configuration:
export default defineNuxtConfig({
  modules: [
    'nuxt-umami'
  ],
  umami: {
    id: "xxx",
    host: "https://analytics.site.com",
    autoTrack: true
  }
})

Any ideas what might be causing this? The module works fine during development, it's just the typecheck that's failing.
Environment:

Nuxt 3.15.4
nuxt-umami 3.1.1
pnpm
Was this page helpful?