truffle-box / react-box

Truffle, Webpack and React boilerplate.
https://truffle-box.github.io/
MIT License
736 stars 251 forks source link

Can there remove client folder and move files in client folder to root fodler? #72

Closed zhangyaocheng closed 6 years ago

zhangyaocheng commented 6 years ago

when i using command truffle unbox react, i get the file struct with client folder which contains all the react files. when i using truffle compile and truffle migrate it works well. But when i using command cd client && npm run start it shows bellow error in chrome:

Failed to compile
./src/App.js
Module not found: Can't resolve './contracts/SimpleStorage.json' in 'D:\ipfs\ipfsProject\eth-ipfs-project2\client\src'

i know it is because that SimpleStorage.json is not in such project. So why not remove client folder?