Skip to content

Conversation

MoisesDuarte
Copy link

@MoisesDuarte MoisesDuarte commented Aug 15, 2025

Bumping fastify plugin template versions to account for actual working versions defined on peer dependency.

Currently, trying to build a fastify project through the cli gives the following error (full log is after the code block below):

src/app.ts:31:5 - error TS2345: Argument of type 'FastifyInstance<Server<typeof IncomingMessage, typeof ServerResponse>, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault> & PromiseLike<...>' is not assignable to parameter of type 'FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>'.
  Type 'FastifyInstance<Server<typeof IncomingMessage, typeof ServerResponse>, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault> & PromiseLike<...>' is missing the following properties from type 'FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>': getDecorator, propfind, proppatch, mkcalendar, and 11 more.

31     app,
       ~~~

Found 1 error in src/app.ts:31

cli-log.txt

This PR aims to fix this using the versions defined in the peer dependencies on yarn lock. Testing locally it fixes the build issue.

image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant