Express 5
-
ExpressJS
Fix “TypeError: Missing parameter name” After Upgrading to Express 5
Express 5 uses a stricter route syntax, and a bare * in a route path now throws “Missing parameter name”. Give every wildcard a name, for example change app.get("*") to app.get("/{*splat}") and "/files/*" to "/files/*splat". Also change optional parameters such as "/:id?" to "{/:id}", and replace regular-expression characters in route strings with an array of paths.

