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
I have a doubt in the process of creating plugins. In fact, in the creation and registration of third-party plugins as well.
In a few moments of starting my application I get the following message:
Property '...' does not exist on type 'Fastify...'
*This doesn't always happen
I would like to understand what may be happening, or just have a suggestion on how to debug
//in this example I am registering a third-party plugin, Multipartimport*asfastifyfrom'fastify'importfastifyMultipartfrom'@fastify/multipart'constServer: FastifyInstance=fastify({logger: process.env.APP_SHOWLOG==='true'})Server.register(fastifyMultipart)exportdefaultServer//...another fileimportServerfrom"service/server"Server.post('/',(req: FastifyRequest,reply: FastifyReply)=>{constData=awaitreq.file()})
At some point in the use of what would be the registered object req.file(), or req.files(), in the fastify startup console I get:
馃挰 Question here
I have a doubt in the process of creating plugins. In fact, in the creation and registration of third-party plugins as well.
In a few moments of starting my application I get the following message:
Property '...' does not exist on type 'Fastify...'
*This doesn't always happen
I would like to understand what may be happening, or just have a suggestion on how to debug
At some point in the use of what would be the registered object req.file(), or req.files(), in the fastify startup console I get:
Can you tell me what it could be... In plugins that I also made, using fastify-plugin, the result is the same.
I hope I made it clear, thanks for the help
Your Environment
"@aws-sdk/client-s3": "^3.388.0",
"@fastify/compress": "^6.4.0",
"@fastify/helmet": "^11.0.0",
"@fastify/multipart": "^7.7.2",
"@fastify/rate-limit": "^8.0.1",
"@fastify/swagger": "^8.7.0",
"@fastify/swagger-ui": "^1.9.2",
"@mailchimp/mailchimp_transactional": "^1.0.50",
"@prisma/client": "^5.0.0",
"amqplib": "^0.10.3",
"dotenv": "^16.3.1",
"fastify": "^4.19.2",
"ioredis": "^5.3.2",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"ws": "^8.13.0",
"zod": "^3.21.4",
"zod-to-json-schema": "^3.21.3"
"@types/amqplib": "^0.10.1",
"@types/mailchimp__mailchimp_transactional": "^1.0.5",
"@types/node": "^20.4.5",
"@types/ws": "^8.5.5",
"prisma": "^5.0.0",
"ts-node-dev": "^2.0.0",
"typescript": "^5.1.6"
The text was updated successfully, but these errors were encountered: