T
tRPC

❓-help

Issue with Fastify / tRPC / Angular

Vvladaman2/4/2024
We are trying to setup Angular project with tRPC. In Angular we get following error:
Error: node_modules/fastify-plugin/plugin.d.ts:19:114 - error TS2344: Type 'Options' does not satisfy the constraint 'FastifyPluginOptions'.

19 export default function fp<Options>(fn: FastifyPluginCallback<Options>, options?: string): FastifyPluginCallback<Options>;
~~~~~~~

node_modules/fastify-plugin/plugin.d.ts:19:28
19 export default function fp<Options>(fn: FastifyPluginCallback<Options>, options?: string): FastifyPluginCallback<Options>;
~~~~~~~
This type parameter might need an `extends FastifyPluginOptions` constraint.
Error: node_modules/fastify-plugin/plugin.d.ts:19:114 - error TS2344: Type 'Options' does not satisfy the constraint 'FastifyPluginOptions'.

19 export default function fp<Options>(fn: FastifyPluginCallback<Options>, options?: string): FastifyPluginCallback<Options>;
~~~~~~~

node_modules/fastify-plugin/plugin.d.ts:19:28
19 export default function fp<Options>(fn: FastifyPluginCallback<Options>, options?: string): FastifyPluginCallback<Options>;
~~~~~~~
This type parameter might need an `extends FastifyPluginOptions` constraint.

Looking for more? Join the community!