Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/file-retriever/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"cors": "^2.8.5",
"cpu-features": "^0.0.10",
"dotenv": "^16.4.7",
"express": "^4.21.1",
"express": "^5.0.0",
Copy link

Choose a reason for hiding this comment

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

Bug: Express v5 Incompatibility with express-async-errors

Upgrading Express to v5 while keeping express-async-errors causes a startup crash. express-async-errors patches Express 4 internals that no longer exist in v5, resulting in a runtime error when the package is imported. This prevents the service from booting.

Additional Locations (1)
Fix in Cursor Fix in Web

"express-async-errors": "^3.1.1",
"keyv": "^5.2.1",
"lru-cache": "^11.0.2",
Expand Down
2 changes: 1 addition & 1 deletion services/object-mapping-indexer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@types/node": "^22.10.2",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.21.1",
"express": "^5.0.0",
"express-async-errors": "^3.1.1",
"pg": "^8.13.1",
"pg-format": "^1.0.4",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7453,7 +7453,7 @@ __metadata:
languageName: node
linkType: hard

"express@npm:5.1.0, express@npm:^5.0.1":
"express@npm:5.1.0, express@npm:^5.0.0, express@npm:^5.0.1":
version: 5.1.0
resolution: "express@npm:5.1.0"
dependencies:
Expand Down Expand Up @@ -7488,7 +7488,7 @@ __metadata:
languageName: node
linkType: hard

"express@npm:^4.19.2, express@npm:^4.21.1":
"express@npm:^4.19.2":
version: 4.21.2
resolution: "express@npm:4.21.2"
dependencies:
Expand Down Expand Up @@ -7718,7 +7718,7 @@ __metadata:
db-migrate: "npm:^0.11.14"
dotenv: "npm:^16.4.7"
eslint-plugin-require-extensions: "npm:^0.1.3"
express: "npm:^4.21.1"
express: "npm:^5.0.0"
express-async-errors: "npm:^3.1.1"
jest: "npm:^29.7.0"
keyv: "npm:^5.2.1"
Expand Down Expand Up @@ -11234,7 +11234,7 @@ __metadata:
eslint-config-prettier: "npm:^10.0.0"
eslint-plugin-eslint-plugin: "npm:^6.3.1"
eslint-plugin-prettier: "npm:^5.2.1"
express: "npm:^4.21.1"
express: "npm:^5.0.0"
express-async-errors: "npm:^3.1.1"
pg: "npm:^8.13.1"
pg-format: "npm:^1.0.4"
Expand Down