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.

Unable to resolve module `buffer`

See original GitHub issue

My node version is v9.2.1

Does the node doesn’t support the deprecated grammer ?

var buffer = require('buffer')

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
lfernando-silvacommented, Jan 28, 2018

I think installing buffer by npm install --save buffer and using rn-nodeify to makes adapt Buffer native module, it may to work, but not sure. Maybe you will adapt some other modules of sha package.

In my case, I just replaced bip39 lib to react-native-bip39 and this part is ok now, because does not uses safe-buffer.

1reaction
ferosscommented, Feb 16, 2018

You might find this issue useful if you’re using react-native: https://github.com/facebook/react-native/issues/14796

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Unable to resolve module `buffer` React Native
First Install the missing dependency buffer : npm install buffer --save OR yarn add buffer. Second. Up in the top of your file...
Read more >
Unable to resolve module buffer in react-native #102 - GitHub
Error The application crashes on startup with an error: Unable to resolve module buffer from node_modules/safe-buffer/index.js : buffer ...
Read more >
Module not found: Can't resolve 'buffer' error [Solved]
The error "Module not found: Error: Can't resolve 'buffer'" occurs because there has been a breaking change in Webpack version 5.
Read more >
unable to resolve module buffer react native - Help Interview
unable to resolve module buffer react native. Do the following steps to resovle this issue. npm install buffer --save. Add the below lines...
Read more >
Error: Unable to resolve module `buffer` React Native-Reactjs
Coding example for the question Error: Unable to resolve module `buffer` React Native-Reactjs.
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