Skip to content

@sentry/solidstart loads node-only modules in browser #25849

Closed

Description

@paularmstrong

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/solidstart

SDK Version

11.10.0

Framework Version

11.10.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://docs.sentry.io/platforms/javascript/guides/solidstart/

In the browser:

12:48:18.237 Uncaught ReferenceError: process is not defined
    <anonymous> nodeVersion.js:3
 nodeVersion.js:3:34

Steps to Reproduce

  1. Follow the instructions with latest @solidjs/start and @sentry/solidstart
  2. Load in the browser

Expected Result

The solidstart package should not be loading node-only utilities in browser code.

Actual Result

12:48:18.237 Uncaught ReferenceError: process is not defined
    <anonymous> nodeVersion.js:3
 nodeVersion.js:3:34

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Activity

  1. linear-code commented on Oct 28, 2026

    @linear-code
  2. msonnb commented on Oct 29, 2026

    @msonnb
    Member

    Hey @paularmstrong, thanks for reporting! This is an upstream issue that's been fixed, but not yet released. In the meantime, you can add this workaround to your vite.config.ts:

    import { defaultClientConditions, defineConfig } from "vite";
    
    export default defineConfig({
      environments: {
        client: {
          resolve: {
            conditions: [...defaultClientConditions],
          },
        },
      },
      // ...other config
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions