Skip to content

DD-749 Update example app dependency for expressjs to fix pathToRegexpError#215

Merged
cmcgee4801995 merged 1 commit intomasterfrom
DD-749-fix-example-app-dependency-issue
Jul 9, 2025
Merged

DD-749 Update example app dependency for expressjs to fix pathToRegexpError#215
cmcgee4801995 merged 1 commit intomasterfrom
DD-749-fix-example-app-dependency-issue

Conversation

@cmcgee4801995
Copy link
Copy Markdown
Contributor

Pinned the Express dependency to a v4.x version in the example app as previous "latest" tag was bringing in Express v5.x, which is not compatible with this app yet and was causing a pathToRegexpError, leading to npm start failures.

imran-gov
imran-gov previously approved these changes Jul 8, 2025
@cmcgee4801995 cmcgee4801995 force-pushed the DD-749-fix-example-app-dependency-issue branch from 58bb833 to f77aa2b Compare July 8, 2025 16:14
@cmcgee4801995 cmcgee4801995 force-pushed the DD-749-fix-example-app-dependency-issue branch from f77aa2b to 771152a Compare July 9, 2025 11:10
Copy link
Copy Markdown
Contributor

@KLV96 KLV96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cmcgee4801995 cmcgee4801995 merged commit 5dc57b4 into master Jul 9, 2025
2 checks passed
@ushkarev
Copy link
Copy Markdown

Hi all! I thought I would point out a different solution to this that I’d made a pull request for: it’s actually a fairly small change that’s needed to the controller to make it work with express 4 and 5. This is because using a regular expression in place of a path means that path-to-regexp isn’t used.

#213

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

Successfully merging this pull request may close these issues.

4 participants