Skip to content

:paramName doesn't match URL segments containing dot '.'  #2628

@bytesagar

Description

@bytesagar

⚠️ IMPORTANT ⚠️ Please do not ignore this template. If you do, your issue will be closed immediately.

Describe the bug

:paramName doesn't match URL segments containing dot '.' in react proect with vitejs but works fine with npx create-react-app react app.

Reproduction

suppose we have a route <Route path="/user/pass/reset/:token" component={Reset} />
Now if we visit http://localhost:3000/user/pass/reset/abc.xyz it shows page not found in the project with vitejs but works fine in create-react-app.

System Info

  • vite version: 2.0.5
  • Operating System: Ubuntu 20.04
  • Node version: 14
  • Package manager (npm/yarn/pnpm) and version: npm

Logs (Optional if provided reproduction)

  1. Run vite or vite build with the --debug flag.
  2. Provide the error log here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions