Skip to content

Wizard panicing in vite to next migrated project #563

@Gregoor

Description

@Gregoor

Unfortunately I can't share the repo as it's private and I have not created a minimal repro yet.

Environment

MacOS 14.4

Steps to Reproduce

  1. Start a vite project
  2. Migrate it to next using their guide
  3. pnpx @sentry/wizard@latest --debug -i nextjs

Actual Result

Sentry Wizard failed with:
TypeError: Cannot read properties of null (reading 'token')
    at /Users/gregor/Library/pnpm/store/v3/tmp/dlx-47042/node_modules/.pnpm/@sentry+wizard@3.22.0/node_modules/@sentry/wizard/dist/src/utils/clack-utils.js:744:48
    at step (/Users/gregor/Library/pnpm/store/v3/tmp/dlx-47042/node_modules/.pnpm/@sentry+wizard@3.22.0/node_modules/@sentry/wizard/dist/src/utils/clack-utils.js:56:23)
    at Object.next (/Users/gregor/Library/pnpm/store/v3/tmp/dlx-47042/node_modules/.pnpm/@sentry+wizard@3.22.0/node_modules/@sentry/wizard/dist/src/utils/clack-utils.js:37:53)
    at fulfilled (/Users/gregor/Library/pnpm/store/v3/tmp/dlx-47042/node_modules/.pnpm/@sentry+wizard@3.22.0/node_modules/@sentry/wizard/dist/src/utils/clack-utils.js:28:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

I'm assuming it's this line:

authToken: apiKeys.token,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions