Unexpected error: Cannot provision contracts while instantiating the console

0 votes

I have created a truffle project. I was successfully able to compile and migrate the contract. After this when I try to open truffle console, I am getting the following error:

**Enexpected error: Cannot provision contracts while instantiating the console.
truffle(development)> TypeError: Cannot read property 'forEach' of undefined
    at TruffleInterpreter.resetContractsInConsoleContext (/usr/local/lib/node_modules/truffle/lib/repl.js:95:17)
    at /usr/local/lib/node_modules/truffle/lib/repl.js:44:12**
Jan 23 in Blockchain by Nimisha
45 views

1 answer to this question.

0 votes

This is a common problem with truffle that happens due to the build files. In the data directory, you should have a directory name build, delete this directory and try to open truffle console. 

answered Jan 23 by Omkar
• 67,480 points

Related Questions In Blockchain

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error in playground while committing transaction on the ledger

1. Is this transaction is trying to ...READ MORE

answered Jul 27, 2018 in Blockchain by shweta
• 440 points
26 views
0 votes
0 answers

cryptogen: error: open ./crypto-config.yaml: The system cannot find the file specified

I created a generate.sh to generate crypto ...READ MORE

Mar 1 in Blockchain by Tharindu
• 160 points

closed Mar 1 by Tharindu 117 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
141 views
0 votes
1 answer
0 votes
1 answer

Solidity geth: Error encountered during contract execution [Bad instruction]

recipes is a dynamic storage array. You need ...READ MORE

answered Oct 15, 2018 in Blockchain by Omkar
• 67,480 points
77 views
0 votes
1 answer
+1 vote
1 answer

Error while instantiating chaincode

Hey @Vikas!  The error says, dial unix /host/var/run/docker.sock: connect: ...READ MORE

answered Nov 6, 2018 in Blockchain by Omkar
• 67,480 points
194 views
+15 votes
2 answers

What are the various blockchain smart contracts platforms?

While Ethereum is the most popular platform ...READ MORE

answered Mar 26, 2018 in Blockchain by Johnathon
• 9,080 points
119 views