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?– AniketApr 4, 2019 at 5:05
-
Actually, i am following this tutorial (medium.com/haloblock/…)– Khizar HameedApr 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?– Khizar HameedApr 4, 2019 at 5:08
-
truffleframework.com/docs/truffle/getting-started/… as per the official documentation, only your mentioned folder & file will be created.– AniketApr 4, 2019 at 5:11
-
1See this question on the difference between truffle.js and truffle-config.js.– goodvibrationApr 4, 2019 at 5:59
1 Answer
With latest truffle versions, when execute truffle init command, only truffle-config.js is created. So, add the configuration details to this file.