trying to use kafka-node with angular6 gives a zlib_bindings not found issue









up vote
0
down vote

favorite












I am trying to use kafka-node npm package in an Angular-6 app.
As part of the initial kafka-node npm package installation i have installed zlib since it was showing as a dependency.
As part of running the application using ng serve, it gives the following error.



ERROR in ./node_modules/zlib/lib/zlib.js
Module not found: Error: Can't resolve './zlib_bindings' in '*[local path removed]*angkfkappnode_moduleszliblib'
ERROR in ./node_modules/node-zookeeper-client/lib/jute/index.js
Module not found: Error: Can't resolve 'fs' in '*[local path removed ]*angkfkappnode_modulesnode-zookeeper-clientlibjute'
ERROR in ./node_modules/buffermaker/test/BufferMaker.js
Module not found: Error: Can't resolve 'should' in '*[local path removed ]*angkfkappnode_modulesbuffermakertest'









share|improve this question























  • Are you sure that the library will work in the browser? Bear in mind, Angular is not executed by Node, it's executed by the browser
    – user184994
    Nov 11 at 18:50










  • I am not sure ,i have send data captured from my angular app to a kafka eco system. for which i found that kafa-node is a popular package used which i am trying to integrate through angular, if needed i can expose kafa-node as a back-end node service to the angular-app
    – Tarun Patel
    Nov 11 at 18:54











  • Okay, you can try taking a look at some of the comments over at this GitHub page
    – user184994
    Nov 11 at 19:01










  • @user184994 this solves the zlib issue , however i still get below issue ERROR in ./node_modules/buffermaker/test/BufferMaker.js Module not found: Error: Can't resolve 'should' in '[local path removed]angkfkappnode_modulesbuffermakertest' i
    – Tarun Patel
    Nov 11 at 19:08










  • Sounds like you need to install add that to your dev dependencies npm i should --save-dev
    – user184994
    Nov 11 at 19:09














up vote
0
down vote

favorite












I am trying to use kafka-node npm package in an Angular-6 app.
As part of the initial kafka-node npm package installation i have installed zlib since it was showing as a dependency.
As part of running the application using ng serve, it gives the following error.



ERROR in ./node_modules/zlib/lib/zlib.js
Module not found: Error: Can't resolve './zlib_bindings' in '*[local path removed]*angkfkappnode_moduleszliblib'
ERROR in ./node_modules/node-zookeeper-client/lib/jute/index.js
Module not found: Error: Can't resolve 'fs' in '*[local path removed ]*angkfkappnode_modulesnode-zookeeper-clientlibjute'
ERROR in ./node_modules/buffermaker/test/BufferMaker.js
Module not found: Error: Can't resolve 'should' in '*[local path removed ]*angkfkappnode_modulesbuffermakertest'









share|improve this question























  • Are you sure that the library will work in the browser? Bear in mind, Angular is not executed by Node, it's executed by the browser
    – user184994
    Nov 11 at 18:50










  • I am not sure ,i have send data captured from my angular app to a kafka eco system. for which i found that kafa-node is a popular package used which i am trying to integrate through angular, if needed i can expose kafa-node as a back-end node service to the angular-app
    – Tarun Patel
    Nov 11 at 18:54











  • Okay, you can try taking a look at some of the comments over at this GitHub page
    – user184994
    Nov 11 at 19:01










  • @user184994 this solves the zlib issue , however i still get below issue ERROR in ./node_modules/buffermaker/test/BufferMaker.js Module not found: Error: Can't resolve 'should' in '[local path removed]angkfkappnode_modulesbuffermakertest' i
    – Tarun Patel
    Nov 11 at 19:08










  • Sounds like you need to install add that to your dev dependencies npm i should --save-dev
    – user184994
    Nov 11 at 19:09












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to use kafka-node npm package in an Angular-6 app.
As part of the initial kafka-node npm package installation i have installed zlib since it was showing as a dependency.
As part of running the application using ng serve, it gives the following error.



ERROR in ./node_modules/zlib/lib/zlib.js
Module not found: Error: Can't resolve './zlib_bindings' in '*[local path removed]*angkfkappnode_moduleszliblib'
ERROR in ./node_modules/node-zookeeper-client/lib/jute/index.js
Module not found: Error: Can't resolve 'fs' in '*[local path removed ]*angkfkappnode_modulesnode-zookeeper-clientlibjute'
ERROR in ./node_modules/buffermaker/test/BufferMaker.js
Module not found: Error: Can't resolve 'should' in '*[local path removed ]*angkfkappnode_modulesbuffermakertest'









share|improve this question















I am trying to use kafka-node npm package in an Angular-6 app.
As part of the initial kafka-node npm package installation i have installed zlib since it was showing as a dependency.
As part of running the application using ng serve, it gives the following error.



ERROR in ./node_modules/zlib/lib/zlib.js
Module not found: Error: Can't resolve './zlib_bindings' in '*[local path removed]*angkfkappnode_moduleszliblib'
ERROR in ./node_modules/node-zookeeper-client/lib/jute/index.js
Module not found: Error: Can't resolve 'fs' in '*[local path removed ]*angkfkappnode_modulesnode-zookeeper-clientlibjute'
ERROR in ./node_modules/buffermaker/test/BufferMaker.js
Module not found: Error: Can't resolve 'should' in '*[local path removed ]*angkfkappnode_modulesbuffermakertest'






node.js angular apache-kafka buffer zlib






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 7:38









Giorgos Myrianthous

3,77721335




3,77721335










asked Nov 11 at 18:47









Tarun Patel

468




468











  • Are you sure that the library will work in the browser? Bear in mind, Angular is not executed by Node, it's executed by the browser
    – user184994
    Nov 11 at 18:50










  • I am not sure ,i have send data captured from my angular app to a kafka eco system. for which i found that kafa-node is a popular package used which i am trying to integrate through angular, if needed i can expose kafa-node as a back-end node service to the angular-app
    – Tarun Patel
    Nov 11 at 18:54











  • Okay, you can try taking a look at some of the comments over at this GitHub page
    – user184994
    Nov 11 at 19:01










  • @user184994 this solves the zlib issue , however i still get below issue ERROR in ./node_modules/buffermaker/test/BufferMaker.js Module not found: Error: Can't resolve 'should' in '[local path removed]angkfkappnode_modulesbuffermakertest' i
    – Tarun Patel
    Nov 11 at 19:08










  • Sounds like you need to install add that to your dev dependencies npm i should --save-dev
    – user184994
    Nov 11 at 19:09
















  • Are you sure that the library will work in the browser? Bear in mind, Angular is not executed by Node, it's executed by the browser
    – user184994
    Nov 11 at 18:50










  • I am not sure ,i have send data captured from my angular app to a kafka eco system. for which i found that kafa-node is a popular package used which i am trying to integrate through angular, if needed i can expose kafa-node as a back-end node service to the angular-app
    – Tarun Patel
    Nov 11 at 18:54











  • Okay, you can try taking a look at some of the comments over at this GitHub page
    – user184994
    Nov 11 at 19:01










  • @user184994 this solves the zlib issue , however i still get below issue ERROR in ./node_modules/buffermaker/test/BufferMaker.js Module not found: Error: Can't resolve 'should' in '[local path removed]angkfkappnode_modulesbuffermakertest' i
    – Tarun Patel
    Nov 11 at 19:08










  • Sounds like you need to install add that to your dev dependencies npm i should --save-dev
    – user184994
    Nov 11 at 19:09















Are you sure that the library will work in the browser? Bear in mind, Angular is not executed by Node, it's executed by the browser
– user184994
Nov 11 at 18:50




Are you sure that the library will work in the browser? Bear in mind, Angular is not executed by Node, it's executed by the browser
– user184994
Nov 11 at 18:50












I am not sure ,i have send data captured from my angular app to a kafka eco system. for which i found that kafa-node is a popular package used which i am trying to integrate through angular, if needed i can expose kafa-node as a back-end node service to the angular-app
– Tarun Patel
Nov 11 at 18:54





I am not sure ,i have send data captured from my angular app to a kafka eco system. for which i found that kafa-node is a popular package used which i am trying to integrate through angular, if needed i can expose kafa-node as a back-end node service to the angular-app
– Tarun Patel
Nov 11 at 18:54













Okay, you can try taking a look at some of the comments over at this GitHub page
– user184994
Nov 11 at 19:01




Okay, you can try taking a look at some of the comments over at this GitHub page
– user184994
Nov 11 at 19:01












@user184994 this solves the zlib issue , however i still get below issue ERROR in ./node_modules/buffermaker/test/BufferMaker.js Module not found: Error: Can't resolve 'should' in '[local path removed]angkfkappnode_modulesbuffermakertest' i
– Tarun Patel
Nov 11 at 19:08




@user184994 this solves the zlib issue , however i still get below issue ERROR in ./node_modules/buffermaker/test/BufferMaker.js Module not found: Error: Can't resolve 'should' in '[local path removed]angkfkappnode_modulesbuffermakertest' i
– Tarun Patel
Nov 11 at 19:08












Sounds like you need to install add that to your dev dependencies npm i should --save-dev
– user184994
Nov 11 at 19:09




Sounds like you need to install add that to your dev dependencies npm i should --save-dev
– user184994
Nov 11 at 19:09

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53252008%2ftrying-to-use-kafka-node-with-angular6-gives-a-zlib-bindings-not-found-issue%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53252008%2ftrying-to-use-kafka-node-with-angular6-gives-a-zlib-bindings-not-found-issue%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

Node.js Script on GitHub Pages or Amazon S3

Museum of Modern and Contemporary Art of Trento and Rovereto