Skip to content

Path syntax warnings appear in production #13996

@floatingdino

Description

@floatingdino

Reproduction

  1. Go to https://stackblitz.com/edit/vitejs-vite-bcm7fxcs?file=src%2FApp.tsx
  2. Observe console warnings

System Info

System:
    OS: macOS 15.5
    CPU: (16) arm64 Apple M4 Max
    Memory: 12.01 GB / 128.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.19.0 - ~/.nvm/versions/node/v20.19.0/bin/node
    npm: 10.8.2 - ~/.nvm/versions/node/v20.19.0/bin/npm
    pnpm: 10.8.0 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 138.0.7204.101
    Safari: 18.5
  npmPackages:
    react-router: ^7.6.3 => 7.6.3 
    vite: ^6.0.1 => 6.3.5

Used Package Manager

npm

Expected Behavior

Developer warnings are hidden in production builds

Actual Behavior

Developer warnings are thrown to console in production

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions