-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
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:
inversify-express-utils/src/server.ts
Line 126 in 2e9e2b0
this._app.all('*', (req: Request, res: Response, next: NextFunction) => { |
Possible Solution:
Maybe add a name to the matching like the migration guide recommends?
vdhuyme, abalexandre-bhvr, zuffik and trankhoa798devpath
Metadata
Metadata
Assignees
Labels
No labels