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
import{Confluent,Consumer,Subject}from'kafka-socks';constexpress=require('express');consthttp=require('http');const{ Server }=require('socket.io');constapp=express();constserver=http.createServer(app);constio=newServer(server);constKAFKA_BOOTSTRAP_SERVER=['localhost:31659']constkafka=newConfluent(KAFKA_BOOTSTRAP_SERVER).create("client-id");constkafkaConsumer=kafka.consumer({groupId: "test-group"});constkafkaSocksConsumer=newConsumer(kafkaConsumer,"topic",'websocket-event-ID')constkafkaSocksSubject=newSubject(io,'websocket-namespace-ID')
I get this error:
I am day to day, not working with JS or typescript so I am a bit confused here?
I tried to install the type but don't think this exists.
npm i --save-dev @types/kafka-socks
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fkafka-socks - Not found
npm ERR! 404
npm ERR! 404 '@types/kafka-socks@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/simon/.npm/_logs/2021-12-13T00_43_05_792Z-debug.log
Is this something you have seen before?
The text was updated successfully, but these errors were encountered:
Apologies for the delayed reply here - to test, can you try requiring the module rather than importing it? i.e. const { Confluent, Consumer, Subject } = require('kafka-socks');
While I wasn't able to reproduce the issue, this might solve your block!
Hello.
I am currently trying out your project.
Currently when I do:
package.json
And when I add:
I get this error:
I am day to day, not working with JS or typescript so I am a bit confused here?
I tried to install the
type
but don't think this exists.Is this something you have seen before?
The text was updated successfully, but these errors were encountered: