Skip to content

vincentbitter/fastify-kafka-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steps to reproduce

  1. Create a new project in an empty folder: npm init
  2. Install Fastify: npm i fastify
  3. Install Fastify-Kafka: npm i @fastify/kafka
  4. Create server.js with the content as shown on https://github.com/fastify/fastify-kafka/blob/master/README.md
  5. Start the application: npm start

Output

> start
> node server.js

/x/server.js:31
fastify.kafka.subscribe('updates')
              ^

TypeError: Cannot read properties of undefined (reading 'subscribe')
    at Object.<anonymous> (/x/server.js:31:15)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49

About

This repository proves the documentation of fastify-kafka is incorrect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published