Webpack中的Dapp

时间:2019-02-19 05:59:10

标签: javascript webpack truffle

问题发生之前我已经做到了

truffle unbox webpack
truffle compile
truffle migrate

但是,当我使用“ sudo npm run dev”时,发生了一些错误。有人可以告诉我如何解决它吗?谢谢!

ERROR in ./src/index.js
Module not found: Error: Can't resolve '../../build/contracts/MetaCoin.json' in '/home/segogt/node1/demo/app/src'
 @ ./src/index.js 2:0-67 15:30-46 17:8-24
 @ multi (webpack)-dev-server/client?http://0.0.0.0:8080 ./src/index.js
ℹ 「wdm」: Failed to compile.

0 个答案:

没有答案