Skip to content

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

Closed
@SlothScript

Description

@SlothScript

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions