Erros in fastify lib using ajv

101 views Asked by At

I receieve this errors when i build my typescript code

node_modules/@fastify/ajv-compiler/types/index.d.ts(1,10): error TS2305: Module '"ajv"' has no exported member 'AnySchema'.
node_modules/@fastify/ajv-compiler/types/index.d.ts(6,12): error TS2709: Cannot use namespace '_ajv' as a type.

idk what to do to fix it

"fastify": "^4.24.3"
"typescript": "^5.2.2"

1

There are 1 answers

0
Jubileu On

i just remove the entry "node_modules" from "paths" in my tsconfig.json... seems it works...