<p>I have a React Native Project and it was worked correctly till I added <code>bip39</code> package to the project. when i try to require <code>bip39</code> in my component i get the below error.</p>

<pre><code>undefined is not an object (evaluating 'superCtor.prototype')

inherits
inherits_browser.js:5:45
&lt;unknown&gt;
index.js:23:9
loadModuleImplementation
require.js:320:6
&lt;unknown&gt;
index.js:3:22
loadModuleImplementation
require.js:320:6
&lt;unknown&gt;
browser.js:3:17
loadModuleImplementation
require.js:320:6
&lt;unknown&gt;
index.js:2:24
loadModuleImplementation
require.js:320:6
&lt;unknown&gt;
BIP39.js:1:19
loadModuleImplementation
require.js:320:6
&lt;unknown&gt;
Mnemonic.js:5
loadModuleImplementation
require.js:320:6
&lt;unknown&gt;
App.js:5
loadModuleImplementation
require.js:320:6
&lt;unknown&gt;
index.js:7
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:207:45
global code
&lt;unknown file&gt;:0
</code></pre>

<p>React Native Version <code>0.57.7</code></p>

<p>React Version <code>16.6.1</code></p>

<p>bip39 version <code>2.5.0</code></p>

CC BY-SA 4.0
2019-02-04T14:38:00.450Z
Can you provide more information, like when is this error thrown?
JBaczuk
CC BY-SA 4.0
2019-02-05T13:07:04.137Z
@JBaczuk when i add `const bip = require('bip39')` in component
Amirhosein Rajabi
<bip32-hd-wallets><mnemonic-seed><bip44>
undefined is not an object error when adding BIP39 to React Native
Amirhosein Rajabi
# undefined is not an object error when adding BIP39 to React Native

(Asked by: username_0 on 2019-02-04)

I have a React Native Project and it was worked correctly till I added `bip39` package to the project. when i try to require `bip39` in my component i get the below error.

```
undefined is not an object (evaluating 'superCtor.prototype')

inherits
inherits_browser.js:5:45
<unknown>
index.js:23:9
loadModuleImplementation
require.js:320:6
<unknown>
index.js:3:22
loadModuleImplementation
require.js:320:6
<unknown>
browser.js:3:17
loadModuleImplementation
require.js:320:6
<unknown>
index.js:2:24
loadModuleImplementation
require.js:320:6
<unknown>
BIP39.js:1:19
loadModuleImplementation
require.js:320:6
<unknown>
Mnemonic.js:5
loadModuleImplementation
require.js:320:6
<unknown>
App.js:5
loadModuleImplementation
require.js:320:6
<unknown>
index.js:7
loadModuleImplementation
require.js:320:6
guardedLoadModule
require.js:207:45
global code
<unknown file>:0

```

React Native Version `0.57.7`

React Version `16.6.1`

bip39 version `2.5.0`

**Tags:** bip32-hd-wallets, mnemonic-seed, bip44

> **Comments:**
> **username_1**: Can you provide more information, like when is this error thrown?  
> **username_0**: @username_1 when i add `const bip = require('bip39')` in component  

---

## 0 answers

