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.

WebPack deployment error: Cannot resolve module 'Long'

See original GitHub issue

There is an issue deploying ByteBuffer 3.5.4 under webpack. Here are steps to reproduce:

Setup:

npm install webpack
npm install bytebuffer
echo "module.exports=require('bytebuffer')" > bb.js

Run:

webpack --entry ./bb.js bb_out.js
Hash: 1c6e193b5747ffb98b06
Version: webpack 1.8.11
Time: 271ms
   Asset    Size  Chunks             Chunk Names
bbout.js  192 kB       0  [emitted]  null
   [0] ./bb.js 37 bytes {0} [built]
    + 5 hidden modules

ERROR in ../~/bytebuffer/dist/ByteBufferAB.js
Module not found: Error: Cannot resolve module 'Long' in /home/jcalfee/bitshares/gui/node_modules/bytebuffer/dist
 @ ../~/bytebuffer/dist/ByteBufferAB.js 3271:8-87

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:29 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
marcus-sacommented, Jan 22, 2018

Well this error keeps occurring to me, and none of the answers above solves it.

0reactions
dcodeIOcommented, Oct 25, 2015

Published bytebuffer, currently checking protobuf.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WebPack deployment error: Cannot resolve module 'Long' #47
There is an issue deploying ByteBuffer 3.5.4 under webpack. Here are steps to reproduce: Setup: npm install webpack npm install bytebuffer ...
Read more >
Module not found: Error: Can't resolve 'util' in webpack
The main problem is with Webpack 5. It doesn't preload the polyfill of Node.js. I see that this issue can help you.
Read more >
Module Federation - webpack
Overriding modules is a one-directional operation. Sibling containers cannot override each other's modules. Concept should be environment-independent. Usable in ...
Read more >
How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Basically, just change ' react -scripts' to 4.0.2 in your package.json and run ` npm install` again :D Follow me on...
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
Why the "Error: cannot find module" Occurs · you're trying to import an item from a module you don't have installed in your...
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