I am trying to use the "truffle develop" command but it does not work. I get this error message below. It seems to say there is a problem in the truffle-config file but there is no error.

Do you have any idea about solving this problem?

Problem with truffle develop

Here is the content of the truffle-config.js file:

const fs = require('fs');

const HDWalletProvider = require('truffle-hdwallet-provider');

const secrets = JSON.parse(

module.exports = {
    networks: {
        ropsten: {
            provider: () =>
            new HDWalletProvider(
            network_id: 3

And here is the content of the migration file:

const Crud = artifacts.require("Crud");

module.exports = function(deployer) {


Thank you in advance

Take care



There is some issue with a string appearing in JSON, maybe in your config file at start/truffle-config.js? Post that and migrations file and maybe we will be able to help more (as code not as pictures).

  • Thank you for your answer I copy paste the content of the truffle-config.js file and of the migration file in the original message. Thanks for your help
    – Pierre
    Dec 1 '20 at 12:59
  • Thanks for that @Pierre . I believe the issue is with this line: const secrets = JSON.parse( fs.readFileSync('.secrets-example').toString().trim() ); Can you make sure that this file is being read correctly and that its return is an actual JSON? Dec 1 '20 at 13:56
  • Thanks for your answer. Do you know how I could do that?
    – Pierre
    Dec 1 '20 at 17:04
  • Try looking at a file called .secrets-example in your working directory. You could also try to print the results of the file, ex: console.log(fs.readFileSync('.secrets-example')) Is this off some tutorial? Maybe you can link that too Dec 2 '20 at 16:39
  • 1
    I solved the problem. Thank you very much for your help
    – Pierre
    Dec 3 '20 at 19:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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