Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 nsqjs 添加为依赖项,但由于以下错误,我的构建失败
TypeError: BigNumber is not a constructor
BigNumber.js 官方文档说应该导入为 const BigNumber = require('bignumber.js');
const BigNumber = require('bignumber.js');
但在 node_modules/nsqjs/lib/backofftimer.js 中,它被导入为 const { BigNumber } = require('bignumber.js')
const { BigNumber } = require('bignumber.js')
但是更改此导入并不能解决问题