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.

bscript.compile, undefined is not a function (react-native), circular dependency

See original GitHub issue

Hi, 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:closed
  • Created 6 years ago
  • Comments:28 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
mc-trackercommented, Sep 26, 2017

Yeah, i had test it’s send method under node environment, it works. Same method failed in RN

1reaction
mc-trackercommented, Sep 26, 2017

yeah, it failed on 3.0.0 as expected just now, maybe circular dependency is the real reason.@dcousens

Read more comments on GitHub >

github_iconTop 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 >

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