Skip to content

AI setup wizard dosen't work with me in cursor #166

@omar-m-z-dotcom

Description

@omar-m-z-dotcom

I typed the command

npx -y @posthog/wizard@latest --eu

inside my cursor terminal then it asked me what is the region for my data (weird!)
but then it asked me to authorize on http://localhost:8239/authorize
which i did successfully on the default project and got the message
but then got this log. i hope this information helps

successfully authorized back to the terminal

`┌ Welcome to the PostHog setup wizard ✨

◆ Detected integration: Next.js

┌ PostHog Next.js wizard (agent-powered)

◇ ──────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ The PostHog Next.js wizard (agent-powered) will help you set up PostHog for your application. │
│ Thank you for using PostHog :) │
│ │
├─────────────────────────────────────────────────────────────────────────────────────────────────╯

● 🧙 The wizard has chosen you to try the next-generation agent integration for Next.js.

│ Stand by for the good stuff, and let me know how it goes:

danilo@posthog.com

◇ Select your PostHog Cloud region
│ EU 🇪🇺

● If the browser window didn't open automatically, please open the following link to be redirected to PostHog:

http://localhost:8239/authorize

◇ Authorization complete!

◆ Login complete.

● Detected app router 📱

◇ Initializing PostHog agent...

◆ Agent initialized. Let's get cooking!

◇ This whole process should take about 8 minutes including error checking and fixes.

│ Grab some coffee!

◇ Integration failed

■ Error: Claude Code process exited with code 1

┌ PostHog Next.js wizard

◇ ──────────────────────────────────────────────────────────────────────────────╮
│ │
│ The PostHog Next.js wizard will help you set up PostHog for your application. │
│ Thank you for using PostHog :) │
│ │
├─────────────────────────────────────────────────────────────────────────────────╯

◇ Select your PostHog Cloud region
│ EU 🇪🇺

● If the browser window didn't open automatically, please open the following link to be redirected to PostHog:

http://localhost:8239/authorize

◇ Authorization failed.

■ Authorization failed:

│ Request failed with status code 400

│ If you think this is a bug in the PostHog wizard, please create an issue:
https://github.com/posthog/wizard/issues
No chunk id map found

└ Wizard setup cancelled`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions