Prerequisites
Issue
Node version: v23.11.0
Typescript version: v5.7.3
Fastify version: v5.2.1
Fastify/passport version: v3.0.2
Module type: ESM
I was following the example documentation to get my application set up but I'm running into Typescript errors. It's failing to find basically any property that is supposed to be available on the fastifyPassport module imported from @fastify/passport.

If I compare what is being imported from @fastify/passport to what is being imported from @fastify/secure-session, it seems like the passport module might be missing defining a namespace for fastifyPassport?
fastifySecureSession:


fastifyPassport:

Am I missing something in my setup or is there further work required on the module to export the properties?
This is my tsconfig.json:
{
"compilerOptions": {
"baseUrl": "./src",
"module": "NodeNext",
"target": "ES2022",
"moduleResolution": "NodeNext",
"strict": true,
"declaration": true,
"outDir": "./dist",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
},
"include": ["./src/**/*.ts"],
"ts-node": {
"esm": true,
"transpileOnly": true,
"logError": true,
}
}
Note: I tried the solution from this issue but it did not resolve my problem.
Prerequisites
Issue
Node version: v23.11.0
Typescript version: v5.7.3
Fastify version: v5.2.1
Fastify/passport version: v3.0.2
Module type: ESM
I was following the example documentation to get my application set up but I'm running into Typescript errors. It's failing to find basically any property that is supposed to be available on the
fastifyPassportmodule imported from@fastify/passport.If I compare what is being imported from
@fastify/passportto what is being imported from@fastify/secure-session, it seems like the passport module might be missing defining a namespace forfastifyPassport?fastifySecureSession:fastifyPassport:Am I missing something in my setup or is there further work required on the module to export the properties?
This is my
tsconfig.json:Note: I tried the solution from this issue but it did not resolve my problem.