Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find suitable configuration file. #19

Open
StevenTCramer opened this issue Aug 9, 2019 · 5 comments
Open

Could not find suitable configuration file. #19

StevenTCramer opened this issue Aug 9, 2019 · 5 comments

Comments

@StevenTCramer
Copy link

git clone https://github.com/enjin/erc-1155.git
cd .\erc-1155
npm install

λ  truffle test
Could not find suitable configuration file.
Truffle v5.0.30 (core: 5.0.30)
Node v10.16.0

Are you missing the the truffle-config.js file?

@mjtpena
Copy link

mjtpena commented Nov 8, 2019

Current workaround is to do a:
truffle init

and make sure you don't overwrite the contract and test folders.

@puaka17
Copy link

puaka17 commented Apr 3, 2020

GOoGLE AKAUN

@puaka17
Copy link

puaka17 commented Apr 3, 2020

  • [thegabelk ]

@gruvin
Copy link

gruvin commented Jun 28, 2020

It would appear that /truffle-config.js is did not make it to the repo
Workaround:

mkdir tmp && cd tmp && truffle init

Use the resulting truffle-cofig.js example file as a starting point for your specific needs.

Example ...

const HDWalletProvider = require('@truffle/hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();

module.exports = {
    networks: {
        ropsten: {
            provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/YOUR-PROJECT-ID`),
            network_id: 3,       // Ropsten's id
            gas: 5500000,        // Ropsten has a lower block limit than mainnet
            confirmations: 2,    // # of confs to wait between deployments. (default: 0)
            timeoutBlocks: 200,  // # of blocks before a deployment times out  (minimum/default: 50)
            skipDryRun: true     // Skip dry run before migrations? (default: false for public nets )
        },
    },

    // Set default mocha options here, use special reporters etc.
    mocha: {
        // timeout: 100000
    },

    // Configure your compilers
    compilers: {
        solc: {
            version: "0.5.8",    // Fetch exact version from solc-bin (default: truffle's version)
            settings: {          // See the solidity docs for advice about optimization and evmVersion
                optimizer: {
                    enabled: false,
                    runs: 200
                }
            }
        }
    }
}

... replacing YOUR-PROJECT-ID with your Infura (in this example) project ID

Then ...

cd erc-1155
# nvm use 12 # we need NodeJS >= 12 for ES module support
npm install
npm install @truffle/hdwallet-provider
echo 'grunt venture follow rhythm gun myth topple man hollow armed clap shoved' > .secret
truffle migrate --network ropsten
truffle test --ropsten

... replacing grunt venture follow... with the test word mnemonic for your test Ropsten testnet wallet, having sufficient funds in account[1] (not #0) for contract deployment. (user1=accounts[1] in ./test/*.js code)

@riman002
Copy link

hey guys recently i have started with truffle framework i was trying the truffle unbox package but when i try to run the develop console in it it throws an error

`Error: The specified module could not be found.
Falling back to a NodeJS implementation; performance may be degraded.

Could not find suitable configuration file.
Truffle v5.7.2 (core: 5.7.2)
Node v16.17.0`
a help would have made my day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants
@StevenTCramer @gruvin @mjtpena @puaka17 @riman002 and others