WebPack deployment error: Cannot resolve module 'Long'
See original GitHub issueThere 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:
- Created 8 years ago
- Comments:29 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Well this error keeps occurring to me, and none of the answers above solves it.
Published bytebuffer, currently checking protobuf.