sagaratalatti / WineSupplyChain

Wine Supply Chain Management on Ethereum Blockchain
15 stars 4 forks source link

NPM RUN Build #1

Open Payam-Almasian opened 3 years ago

Payam-Almasian commented 3 years ago

Hi NPM Run build doesnt create build directory and npm run start shows error ERROR in ./app/src/app.js Module not found: Error: Can't resolve '../../build/contracts/SupplyChain.json' in '/home/ubuntu/Desktop/Code/WineSupplyChain/app/src' @ ./app/src/app.js 23:19-68 @ multi (webpack)-dev-server/client?http://localhost:8080 ./app/src/app.js ℹ 「wdm」: Failed to compile.

TJDjchao commented 3 years ago

run truffle compile or truffle migrate, and Artifacts of your compilation will be placed in the build/contracts/ directory, relative to your project root. It works for me. truffle doc