New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fastify version conflict #9957
Comments
Nest v9 uses fastify v4. The fastify-accepts package you're using only supports up to fastify v3. Replace it with |
Also, I just noticed you have |
run |
This is most likely the issue here. Fastify v4 cannot be used with apollo-server-fastify v3. They are not compatible. This is not related to Nest, it's a problem with the asf package. More on the linked issue |
Is there an existing issue for this?
Current behavior
FastifyError: fastify-plugin: fastify-accepts - expected '3.x' fastify version, '4.2.1' is installed at Object.checkVersion (D:\doatkolom\fix-npm\node_modules\fastify\lib\pluginUtils.js:118:11) at Object.registerPlugin (D:\doatkolom\fix-npm\node_modules\fastify\lib\pluginUtils.js:133:16) at Boot.override (D:\doatkolom\fix-npm\node_modules\fastify\lib\pluginOverride.js:28:57) at Plugin.exec (D:\doatkolom\fix-npm\node_modules\avvio\plugin.js:79:33) at Boot.loadPlugin (D:\doatkolom\fix-npm\node_modules\avvio\plugin.js:272:10) at processTicksAndRejections (node:internal/process/task_queues:83:21)
Steps to reproduce
No response
Expected behavior
How to fix this issue?
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
No response
Packages versions
Node.js version
No response
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: