Unable to resolve module `buffer`
See original GitHub issueMy node version is v9.2.1
Does the node doesn’t support the deprecated grammer ?
var buffer = require('buffer')
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top 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 >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
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.
You might find this issue useful if you’re using react-native: https://github.com/facebook/react-native/issues/14796