Thanks to visit codestin.com
Credit goes to github.com

Skip to content

usePostHog is not defined #2788

@BoBo-Git

Description

@BoBo-Git

Bug description

Using this Nuxt module, even after deleting the .nuxt folder and regenerating it, the usePostHog composable tells me that this method is undefined. I checked the import.d.ts and it is not automatically importing usePostHog according to the module's runtime.

How to reproduce

  1. Nuxt: v4.2.2
  2. @posthog/nuxt: v1.3.25

Related sub-libraries

  • All of them
  • posthog-js (web)
  • posthog-js-lite (web lite)
  • posthog-node
  • posthog-react-native
  • @posthog/react
  • @posthog/ai
  • @posthog/nextjs-config
  • @posthog/nuxt
  • @posthog/rollup-plugin
  • @posthog/webpack-plugin

Additional context

Thank you for your bug report – we love squashing them!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions