Skip to content

TypeError: path must be a string, array, or RegExp (Express.js compatibility in Node 12+) #213

@SheikhElMoctarG

Description

@SheikhElMoctarG

When starting a BootBot server with Node.js v14+, the app crashes with:

TypeError: path must be a string, array of strings, or regular expression
    at pathToRegexp (.../path-to-regexp/index.js:69:11)
    ... (Express.js routing stack)

This occurs in BootBot._initWebhook() when initializing the Express webhook route.

Environment:
Node.js v14+ (tested up to v18.20.8)
BootBot 1.1.0 (latest)
Express 4.18.x

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions