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

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 66,880 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
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 45 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
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
• 66,880 points
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
• 66,880 points
+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,050 points

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.