Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'kafka' does not exist on type 'FastifyInstance<Server, IncomingMessage,> #121

Open
2 tasks done
aniyazngn opened this issue Mar 28, 2024 · 1 comment
Open
2 tasks done

Comments

@aniyazngn
Copy link

aniyazngn commented Mar 28, 2024

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

server.post('/data', (req, reply) => {
  server.kafka.push({
    topic: 'test',
    payload: req.body,
    key: 'dataKey',
  })
})

it throws the following erorr
 "

Property 'kafka' does not exist on type 'FastifyInstance<Server, IncomingMessage, ServerResponse, Logger<{ level: string; }>, FastifyTypeProviderDefault> & PromiseLike<...>'.ts(2339)

"
Anyone else facing similar problem?

@Fdawgs
Copy link
Member

Fdawgs commented Jan 12, 2025

Hi @aniyazngn, is this still an issue? This is a dated issue, and Fastify v5 has released since this was first created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants