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

  • Is it causing any problem? – Aniket Apr 04 '19 at 05:05
  • Actually, i am following this tutorial (https://medium.com/haloblock/deploy-your-own-smart-contract-with-truffle-and-ganache-cli-beginner-tutorial-c46bce0bd01e) – Khizar Hameed Apr 04 '19 at 05: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? – Khizar Hameed Apr 04 '19 at 05:08
  • https://truffleframework.com/docs/truffle/getting-started/creating-a-project as per the official documentation, only your mentioned folder & file will be created. – Aniket Apr 04 '19 at 05:11
  • 1
    See this question on the difference between truffle.js and truffle-config.js. – goodvibration Apr 04 '19 at 05:59

1 Answers1

1

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

user91111
  • 11
  • 1