You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys,
I'm trying to use the newest version of fastify 5.5.x and trying to remove the warning:
The router options for ignoreTrailingSlash property access is deprecated. Please use "options.routerOptions" instead for accessing router options. The router options will be removed in `fastify@6`.
Error:
Property 'routerOptions' does not exist on type 'FastifyServerOptions<...>'
Even though the runtime supports it and the deprecation warning tells us to use routerOptions, the TypeScript definitions don't expose this property yet.
I'm happy to contribute a fix for the TypeScript definitions if you can point me to the right files. Thanks!
Activity
AkhileshDasari commentedon Jul 23, 2026
I would like to contribute to this issue.
metcoder95 commentedon Jul 23, 2026
Can you provide an Minimum Reproducible Example?
AkhileshDasari commentedon Jul 23, 2026
Hi @metcoder95,
Here's a Minimum Reproducible Example:
Error:
Property 'routerOptions' does not exist on type 'FastifyServerOptions<...>'
Even though the runtime supports it and the deprecation warning tells us to use routerOptions, the TypeScript definitions don't expose this property yet.
I'm happy to contribute a fix for the TypeScript definitions if you can point me to the right files. Thanks!
metcoder95 commentedon Jul 24, 2026
This has been fixed in latest
fastify; can you try to upgrade to5.10?