ExtendableError: Unknown network "rinkeby". See your Truffle configuration file for available networks

Am deploying a smart contract that trials lending and borrowing to compound on Rinkeby and am getting an error during the migration.

:computer: Environment
Truffle v5.1.56 (core: 5.1.56)
Node v12.19.0

:memo:Details
Getting this error: ExtendableError: Unknown network "rinkeby". See your Truffle configuration file for available networks. when trying to truffle migrate to Rinkeby

:1234: Code to reproduce
Here is my truffle config file and the error I get from the terminal when I deploy

1 Like

Emmm, I think you make mismatch for the config,

networks: {
  ropsten: {              <<------------------the net work is `ropsten`
    provider: () => 
      new HDWalletProvider(
        secrets.seed,
          `https://rinkeby.infura.io/v3/${secrets.projectId}`  <<------------------ the network is rinkeby
       ),
    }
}
1 Like

LOL THANKS I have been coding for a few hours straight, i was just tired

1 Like