Skip to content

Compatibility issue with Nuxt 3.13.2 / Nitro 2.10.2 / PNPM : Worker init failed #14168

@simplg

Description

@simplg

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/nuxt

SDK Version

8.36.0

Framework Version

Nuxt 3.13.2

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://stackblitz.com/edit/nuxt-starter-j3ktug?file=sentry.client.config.ts

It seems using pnpm as default package manager with the last nuxt/nitro version, breaks dev environment. Above I have a barebone reproduction example with nuxt + sentry.
If this project is installed with "npm" instead, it works : "rm -rf node_modules && rm -rf .nuxt && npm install && npm run dev"

Steps to Reproduce

  1. Run "pnpm install"
  2. Run "pnpm dev"
  3. Get "ERROR [worker reload] [worker init] /home/projects/nuxt-starter-j3ktug/.nuxt/dev/index.mjs failed"
  4. No page rendered

Expected Result

  1. Have no errors and pages should be rendered

Actual Result

Not much, just a blank page with the nuxt logo due to the worker not being initialized (failing). I'm not able to get more information about this error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: nuxtIssues related to the Sentry Nuxt SDK

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions