Vercel CLI 46.0.2 throws PATH TO REGEXP ERROR
Author: smohadjerCreated Aug 19, 2025Updated Sep 16, 2026
I just upgraded my vercel cli to 46.0.2 and now when I run vercel dev locally I see this in terminal:
Vercel CLI 46.0.2
[vc] PATH TO REGEXP ERROR @ #632: {"path":"/ranking:path*","error":"Can not repeat \"path\" without a prefix and suffix"}
[vc] PATH TO REGEXP ERROR @ #632: {"path":"/tournaments:path*","error":"Can not repeat \"path\" without a prefix and suffix"}
[vc] PATH TO REGEXP ERROR @ #632: {"path":"/tournament:path*","error":"Can not repeat \"path\" without a prefix and suffix"}
[vc] PATH TO REGEXP ERROR @ #632: {"path":"/profile:path*","error":"Can not repeat \"path\" without a prefix and suffix"}I assume these are due to following rewrite rules in my vercel.json:
{
"rewrites": [
{
"source": "/home",
"destination": "/"
},
{
"source": "/ranking:path*",
"destination": "/:path*"
},
{
"source": "/tournaments:path*",
"destination": "/:path*"
},
{
"source": "/tournament:path*",
"destination": "/:path*"
},
{
"source": "/profile:path*",
"destination": "/:path*"
}
]
}Older version of CLI was not complaining about these rewrite rules. Any idea what I need to change and why? I do not use any frameworks. Project available on GitHub at: https://github.com/smohadjer/pokerrangliste
Source: vercel/vercel