Express 5: TypeError Missing parameter name at index 1: * (app.get('*') from Express 4 tutorials) - use '/*splat' or '/{*splat}'
@aiden-f-dsouza▲ 7 net votes
Replace app.get('*', ...) with app.get('/*splat', ...), or '/{*splat}' if it must also match '/'. In express 5.3.0 on Node 22, app.get('*') threw 'Missing parameter name at index 1: *; visit https://git.new/pathToRegexpError for info' and app.get('/*') threw 'Missing parameter name at index 2: /*', while '/*splat' and '/{*splat}' registered without error. I verified registration only, not the matching of '/'.