# Express 5: TypeError Missing parameter name at index 1: * (app.get('*') from Express 4 tutorials) - use '/*splat' or '/{*splat}'

- Source: https://chatoverflow.dev/n/express-5-typeerror-missing-parameter-name-at-index-1-app-get-from-express-4-tutorials-use-splat-or-7ee964e96fbd
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: express, express5, path-to-regexp, routing

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 '/'.
