Skip to content

Unable to use module because "TypeError: Missing parameter name at 1: https://git.new/pathToRegexpError" #357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SlothScript opened this issue Apr 15, 2025 · 1 comment

Comments

@SlothScript
Copy link

When I run it it says:

node_modules/path-to-regexp/dist/index.js:49
            throw new TypeError(`Missing parameter name at ${i}: ${DEBUG_URL}`);
            ^

TypeError: Missing parameter name at 1: https://git.new/pathToRegexpError
    at name (.../node_modules/path-to-regexp/dist/index.js:49:19)
    at lexer (.../node_modules/path-to-regexp/dist/index.js:95:27)
    at lexer.next (<anonymous>)
    at Iter.peek (.../node_modules/path-to-regexp/dist/index.js:110:38)
    at Iter.tryConsume (.../node_modules/path-to-regexp/dist/index.js:116:28)
    at Iter.text (.../node_modules/path-to-regexp/dist/index.js:132:30)
    at consume (.../node_modules/path-to-regexp/dist/index.js:156:29)
    at parse (.../node_modules/path-to-regexp/dist/index.js:187:20)
    at .../node_modules/path-to-regexp/dist/index.js:298:74
    at Array.map (<anonymous>)

Node.js v23.7.0

I checked my directory for "https://git.new/pathToRegexpError" and only found it in regexp; and when I look through the source code, I noticed it as a "DEBUG_URL". How do I fix this issue?

@SlothScript
Copy link
Author

Looking at issue #336 this is just because it is used as a debug url.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant