0

I have run the truffle init command successfully with creating the following directories and files such as contracts, migrations, test, and truffle-config.js but the one file is missing as truffle.js? Any solution

5
  • Is it causing any problem?
    – Aniket
    Commented Apr 4, 2019 at 5:05
  • Actually, i am following this tutorial (medium.com/haloblock/…) Commented Apr 4, 2019 at 5:06
  • When i compile the contract. its shows the following error (Error: CompileError:ParserContract.sol:3:1: ParserError: Expected Pragma, import.....). It seems to be missing of this file or not? Commented Apr 4, 2019 at 5:08
  • truffleframework.com/docs/truffle/getting-started/… as per the official documentation, only your mentioned folder & file will be created.
    – Aniket
    Commented Apr 4, 2019 at 5:11
  • 1
    See this question on the difference between truffle.js and truffle-config.js. Commented Apr 4, 2019 at 5:59

1 Answer 1

1

With latest truffle versions, when execute truffle init command, only truffle-config.js is created. So, add the configuration details to this file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.