Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Nuxt] Error with autoImport disabled #13302

Closed
3 tasks done
darthf1 opened this issue Aug 12, 2024 · 1 comment · Fixed by #13342
Closed
3 tasks done

[Nuxt] Error with autoImport disabled #13302

darthf1 opened this issue Aug 12, 2024 · 1 comment · Fixed by #13342
Assignees
Labels
Package: nuxt Issues related to the Sentry Nuxt SDK

Comments

@darthf1
Copy link

darthf1 commented Aug 12, 2024

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nuxt

SDK Version

8.25.0

Framework Version

3.12.4

Link to Sentry event

No response

Reproduction Example/SDK Setup

When auto-import is disabled, an error is thrown

Steps to Reproduce

Create Nuxt project with autoImport disabled:

nuxt.config.ts

import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
  imports: {
    autoImport: false,
  },

  sentry: {
    debug: import.meta.env.DEV,
    sourceMapsUploadOptions: {
      authToken: process.env.NUXT_PUBLIC_SENTRY_AUTH_TOKEN,
      org: process.env.NUXT_PUBLIC_SENTRY_ORG,
      project: process.env.NUXT_PUBLIC_SENTRY_PROJECT,
      telemetry: false,
    },
  },
})

Expected Result

A world of happiness

Actual Result

Uncaught ReferenceError: defineNuxtPlugin is not defined

Image

Image

@github-actions github-actions bot added the Package: nuxt Issues related to the Sentry Nuxt SDK label Aug 12, 2024
@s1gr1d
Copy link
Member

s1gr1d commented Aug 13, 2024

Thanks for trying out the experimental Nuxt SDK and filing this, we will fix that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nuxt Issues related to the Sentry Nuxt SDK
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants