question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing alongside kafka-node breaks gRPC

See original GitHub issue

When you install zeebe-node and kafka-node in the same project - even if you don’t import kafka-node - the gRPC client in zeebe-node breaks. You see an error message in the zeebe-node log output:

Cannot read property 'on' of undefined

See the reproducer here: https://github.com/need4eat/kafka-zeebe-test

It looks like kafka-node installs a version of Long that overwrites the version needed by zeebe-node’s gRPC dependency.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jwulfcommented, Mar 11, 2020

This is addressed in zeebe-node 0.23.0-alpha.2.

long has been added to the deps of zeebe-node, and you can now install kafka-node and zeebe-node in any order.

1reaction
jwulfcommented, Mar 9, 2020

I’ve npm shrinkwrapped it for alpha-2. If that doesn’t address it, we’ll try https://github.com/rogeriochaves/npm-force-resolutions next.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing alongside kafka-node breaks gRPC #124 - GitHub
When you install zeebe-node and kafka-node in the same project - even if you don't import kafka-node - the gRPC client in zeebe-node...
Read more >
Quick start | Node - gRPC
This guide gets you started with gRPC in Node with a simple working example.
Read more >
Serverless OpenShift Container Platform 4.10
Installing the OpenShift Serverless Operator from the web console · 3.1.3. ... Interacting with a serverless application using HTTP2 and gRPC.
Read more >
Announcing Zeebe Node Client 0.23 - Camunda
An unmaintained package in the dependency tree of kafka-node (and arguably a bug in NPM's de-duping algorithm) caused zeebe-node to break by ...
Read more >
Monitoring Node.js - IBM
This package is for monitoring Node.js server applications with Instana. If you want to monitor JavaScript applications running in a browser, check out...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found