Skip to content
Open
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
4 changes: 2 additions & 2 deletions packages/job-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"dotenv": "^16.0.3",
"encoding": "^0.1.13",
"fast-glob": "^3.2.12",
"fastify": "^4.0.0",
"fastify-cli": "^5.5.1",
"fastify": "^5.7.3",
"fastify-cli": "^7.0.0",
Comment on lines +43 to +44
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

This upgrade introduces an incompatibility between fastify and fastify-cli. fastify-cli@7.0.0 depends on fastify@^4.10.2, but this change upgrades fastify to ^5.7.3.

When fastify-cli starts the application, it will create a fastify v4 instance, while your application code is built against fastify v5 APIs. This version mismatch will lead to runtime errors.

To fix this, you should replace the usage of fastify-cli in your start and dev:start scripts with a dedicated server entrypoint file that programmatically creates and starts the Fastify server. This will ensure the correct fastify version is used. Currently, there is no version of fastify-cli that supports fastify v5.

"fastify-cron": "^1.3.1",
"fastify-plugin": "^4.3.0",
"ioredis": "^5.2.4",
Expand Down
Loading