Skip to content

browser / import_react is not defined / production #286

Description

@aheissenberger

Describe the bug

Some client side components fail to render with error:

installHook.js:1 ReferenceError: import_react is not defined
    at S (swipablelist.tsx:28:28)

Reproduction

No response

Steps to reproduce

  1. cd examples/shadcn
  2. pnpm build
  3. pnpm start

System Info

System:
    OS: macOS 15.7.1
    CPU: (12) arm64 Apple M4 Pro
    Memory: 219.33 MB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 25.2.0 - /opt/homebrew/bin/node
    npm: 11.6.2 - /opt/homebrew/bin/npm
    pnpm: 10.22.0 - /Users/ah/SVN-Checkouts/TST/zitadel-webauth-signing/node_modules/.bin/pnpm
    bun: 1.3.2 - /opt/homebrew/bin/bun
    Deno: 2.5.6 - /opt/homebrew/bin/deno
  Browsers:
    Chrome: 142.0.7444.162
  npmPackages:
    @lazarv/react-server: 0.0.0-experimental-600622d-20251109-6c5a6bee => 0.0.0-experimental-600622d-20251109-6c5a6bee

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions