-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
BugPackage: nuxtIssues related to the Sentry Nuxt SDKIssues related to the Sentry Nuxt SDKdocs-ignoreDo not include content in documentation AI trainingDo not include content in documentation AI training
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/nuxt
SDK Version
8.37.1
Framework Version
3.14.159
Link to Sentry event
https://tenri.sentry.io/issues/6057040304/events/119f2704c7c7455bbc09c01784e89105/
Reproduction Example/SDK Setup
https://github.com/sumomo015/nuxt-sentry-setuser
Steps to Reproduce
Reproduction Environment
- node v20.18.0
- pnpm 9.12.3
- development environment (no error in the build environment)
using setUser
https://github.com/sumomo015/nuxt-sentry-setuser/blob/main/app.vue#L4
<script setup lang="ts">
import * as Sentry from '@sentry/nuxt'
Sentry.setUser({ id: 'nuxt' })
</script>
Steps to Reproduce
1. Install dependencies
pnpm install
2. Start nuxt
pnpm run dev
3. Open your browser and navigate to
http://localhost:3000/
4. You will see the following error
[nuxt] [request error] [unhandled] [500] Cannot use import statement outside a module
Expected Result
Nuxt app on the localhost have been successfully launched.
Actual Result
Metadata
Metadata
Assignees
Labels
BugPackage: nuxtIssues related to the Sentry Nuxt SDKIssues related to the Sentry Nuxt SDKdocs-ignoreDo not include content in documentation AI trainingDo not include content in documentation AI training
Projects
Status
No status