我有我的流星项目 当我运行时,我得到以下警告: 第一次警告:
Mismatched anonymous define() module: function () { return BigNumber; }
intakeDefines @ aramk_requirejs.js?hash=a2cd915…:1278
(anonymous) @ aramk_requirejs.js?hash=a2cd915…:1469
第二次警告:{...}
Mismatched anonymous define() module: function () { return utf8; }
当我运行我的项目时,我收到以下错误
Uncaught TypeError: Right-hand side of 'instanceof' is not callable
at isBigNumber (http://localhost:3000/packages/modules.js?hash=6e90e44e0c2b18ef12cb22415a388acb1e06ad7f:5598:19)
at toBigNumber (http://localhost:3000/packages/modules.js?hash=6e90e44e0c2b18ef12cb22415a388acb1e06ad7f:5465:9)
at Object.fromDecimal (http://localhost:3000/packages/modules.js?hash=6e90e44e0c2b18ef12cb22415a388acb1e06ad7f:5343:18)
at http://localhost:3000/packages/modules.js?hash=6e90e44e0c2b18ef12cb22415a388acb1e06ad7f:2613:30
at Array.forEach (native)
at inputTransactionFormatter (http://localhost:3000/packages/modules.js?hash=6e90e44e0c2b18ef12cb22415a388acb1e06ad7f:2612:8)
at http://localhost:3000/packages/modules.js?hash=6e90e44e0c2b18ef12cb22415a388acb1e06ad7f:2910:28
at Array.map (native)
at Method.formatInput (http://localhost:3000/packages/modules.js?hash=6e90e44e0c2b18ef12cb22415a388acb1e06ad7f:2909:32)
at Method.toPayload (http://localhost:3000/packages/modules.js?hash=6e90e44e0c2b18ef12cb22415a388acb1e06ad7f:2935:23)
出现问题的代码行是这样的:web3.eth.contract(abi).new({data: code,gas:10000}, function (err, contract) {..irrelevant code..}
在互联网上搜索之后,我认为这是require.js的错误以及如何调用脚本但仍然没有知道如何解决它。我已查看过文档,但仍需要一些帮助。