bscript.compile, undefined is not a function (react-native), circular dependency
See original GitHub issueHi, I’m developing an rn project with bitcoinjs-lib. Previously, I have fixed compatible issues by rn-nodeify.
Unfortunately, this latest version which contains template module cannot be resolved as before.
Transaction creation is always failed when called bscript.compile
, because script which was required by out.js is {}.
But the Types is required well,like the code in out.js as below:
var bscript = require('../../script')
var types = require('../../types')
I have changed and compared, But got nothing. could anyone please give me some suggestion?Thanks in advance
Issue Analytics
- State:
- Created 6 years ago
- Comments:28 (11 by maintainers)
Top Results From Across the Web
How to fix nasty circular dependency issues once and for all in ...
AbstractNode.js is already being loaded, and is immediately being returned from the module cache. However, since that module did not run beyond ...
Read more >Class extends value undefined is not a function or null - Stack ...
I had a circular import issue with browserify. It was inconsistent and weird--modifying the file or commenting and removing things and rerunning ...
Read more >How to detect circular dependency in Typescript · Issue #40471
The code below has a circular dependency issue. A -> B -> A ... paramTypesA is [ [Function: B] { id: 'B' }...
Read more >How to Analyze Circular Dependencies in ES6? - Railsware
It is caused by circular dependencies that cannot be resolved synchronously by webpack. One is undefined, hence the error.
Read more >TypeError: "x" is not a constructor - JavaScript - MDN Web Docs
The following JavaScript standard built-in objects are not a constructor: Math , JSON , Symbol , Reflect , Intl , Atomics . Generator...
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 Free
Top 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
Yeah, i had test it’s send method under node environment, it works. Same method failed in RN
yeah, it failed on 3.0.0 as expected just now, maybe circular dependency is the real reason.@dcousens