expressjs / expressjs/express

TypeError: Missing parameter name at 2: https://git.new/pathToRegexpError

Open
#6,724 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
69.5k
Forks
25k
Avg merge
4d 20h
Merged PRs (30d)
9

Description

For those who are experiencing this error, please check the [migration guide](https://expressjs.com/en/guide/migrating-5#path-syntax), it documents how to make the necessary changes. If you continue having issues, [join this discussion](https://github.com/expressjs/express/discussions/6723)

In the vast majority of cases, it covers all scenarios. We know there are limitations, which are planned to be addressed in future versions of path-to-regexp ([path-negation](https://github.com/pillarjs/path-to-regexp/issues/379), [parameter customization](https://github.com/pillarjs/path-to-regexp/issues/380)). Once there is an update in path-to-regexp, you will only need to update your package-lock.json. If you feel that a functionality is missing that we haven’t considered, please open an issue in path-to-regexp, Otherwise, just follow the [migration guide](https://expressjs.com/en/guide/migrating-5#path-syntax)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.