Summary:
With the release of Express 5 there is a breaking change how wildcards are handled with https://github.com/pillarjs/path-to-regexp.
Express has a migration guide for possible troubleshooting : https://expressjs.com/en/guide/migrating-5.html#path-syntax.
Issue:
inversify-express-utils uses a *-wildcard route inside the build-method of the server.ts which results in an error when starting the inversify server.
Error: Uncaught TypeError: Missing parameter name at 1: https://git.new/pathToRegexpError
Code:
|
this._app.all('*', (req: Request, res: Response, next: NextFunction) => { |
Possible Solution:
Maybe add a name to the matching like the migration guide recommends?
Summary:
With the release of Express 5 there is a breaking change how wildcards are handled with https://github.com/pillarjs/path-to-regexp.
Express has a migration guide for possible troubleshooting : https://expressjs.com/en/guide/migrating-5.html#path-syntax.
Issue:
inversify-express-utilsuses a*-wildcard route inside thebuild-method of theserver.tswhich results in an error when starting the inversify server.Error:
Uncaught TypeError: Missing parameter name at 1: https://git.new/pathToRegexpErrorCode:
inversify-express-utils/src/server.ts
Line 126 in 2e9e2b0
Possible Solution:
Maybe add a name to the matching like the migration guide recommends?