Skip to content

Client shows error before optimizing dependencies #13324

@adhami3310

Description

@adhami3310

I'm using React Router as a...

framework

Reproduction

Basically what seems to me is a minimal react router app, with any external dependency (I'm using emotion here, but I have seen the issue happen with any of them)

https://github.com/adhami3310/react-router-bug-repro

System Info

System:
    OS: Linux 6.14 Arch Linux
    CPU: (16) x64 AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
    Memory: 41.54 GB / 58.66 GB
    Container: Yes
    Shell: 4.0.1 - /bin/fish
  Binaries:
    Node: 23.9.0 - /usr/bin/node
    npm: 11.2.0 - /usr/bin/npm
    bun: 1.2.6 - /usr/bin/bun

Used Package Manager

npm

Expected Behavior

Either it works all the time or at least not show the error if it's optimizing the dependency.

Actual Behavior

It shows an Application error, then it magically works. Once the package has been optimized once it works without errors afterwards.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions