I'm trying to develop a simple dapp using ReactJS.I used Charterhouse/truffle-create-react-app box suggested by truffle website.
The problem is truffle compile
and truffle migrate
do not seem to work.
All I get is this:
Compiling ./contracts/Migrations.sol...
Compiling ./contracts/SimpleStorage.sol...
No errors but build directory is not created.
I'm using ganache-cli and Metamask. Here's my truffle.js:
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*' // Match any network id
}
},
compilers: {
solc: '^0.4.24' //added because I have written my own contracts
//with this version
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}
output of truffle network:
Contracts have not been deployed to any network.
output of truffle version:
Truffle v5.0.0 (core: 5.0.0)
Solidity v0.5.0 (solc-js)
Node v8.10.0
I have also tried truffle compile
and truffle migrate
with --reset
and --all
but no differences.