Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

TypeError: Bignumber is not a constructor with webpack #101

Closed
haywirez opened this issue Mar 31, 2019 · 2 comments
Closed

TypeError: Bignumber is not a constructor with webpack #101

haywirez opened this issue Mar 31, 2019 · 2 comments

Comments

@haywirez
Copy link

When bundling with webpack, I keep getting this error:

TypeError: Bignumber is not a constructor
  at eval (webpack:///./node_modules/borc/src/constants.js?:62:19)
  at Object../node_modules/borc/src/constants.js 
  at __webpack_require__
  at eval (webpack:///./node_modules/borc/src/utils.js?:5:19)
  at Object../node_modules/borc/src/utils.js 
  at __webpack_require__
  at eval (webpack:///./node_modules/borc/src/decoder.js?:7:15)
  at Object../node_modules/borc/src/decoder.js 
  at __webpack_require__ 
  at eval (webpack:///./node_modules/borc/src/diagnose.js?:3:17)
  at Object../node_modules/borc/src/diagnose.js 
  at __webpack_require__ 
  at eval (webpack:///./node_modules/borc/src/index.js?:4:20)
  at Object../node_modules/borc/src/index.js 
  at __webpack_require__ 
  at eval (webpack:///./node_modules/ipld-dag-cbor/src/util.js?:3:14)
  at Object../node_modules/ipld-dag-cbor/src/util.js 
  at __webpack_require__
  at eval (webpack:///./node_modules/ipld-dag-cbor/src/index.js?:3:16)
  at Object../node_modules/ipld-dag-cbor/src/index.js 
  at __webpack_require__ 
  at eval (webpack:///./node_modules/ipld/src/index.js?:6:21)

Likely related to how default exports are handled in the dependency:
dignifiedquire/borc#41

Any possible workarounds?

@rvagg
Copy link
Member

rvagg commented Apr 1, 2019

I think dignifiedquire/borc#41 is where you're going to find someone who's figured out a workaround unfortunately.

@vmx
Copy link
Member

vmx commented Jun 10, 2020

This issue is likely be fixed. Please re-open if it is still there.

@vmx vmx closed this as completed Jun 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants