Error when Migrating 3_deploy_upgradeable in guide

I’m following the Developing Smart Contracts/Upgrading Smart Contracts in the Learn section. I got stuck on the 3_deploy_upgradeable.

Whenever I try to migrate it (npx truffle migrate --network development), I get this error:

Starting migrations…

Network name: ‘development’
Network id: 5777
Block gas limit: 6721975 (0x6691b7)

3_deploy_upgradeable_FFC.js

Error: The requested contract was not found. Make sure the source code is available for compilation
at getContractNameAndRunValidation (C:\Users\brand\B_truffle\node_modules@openzeppelin\upgrades-core\src\validate\query.ts:46:11)
at Object.getStorageLayout (C:\Users\brand\B_truffle\node_modules@openzeppelin\upgrades-core\src\validate\query.ts:54:41)
at Object.deployImpl (C:\Users\brand\B_truffle\node_modules@openzeppelin\truffle-upgrades\src\utils\deploy-impl.ts:32:18)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at deployProxy (C:\Users\brand\B_truffle\node_modules@openzeppelin\truffle-upgrades\src\deploy-proxy.ts:46:16)
at module.exports (C:\Users\brand\B_truffle\migrations\3_deploy_upgradeable_FFC.js:7:3)
at Migration._deploy (C:\Users\brand\B_truffle\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:73:1)
at Migration._load (C:\Users\brand\B_truffle\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:55:1)
at Migration.run (C:\Users\brand\B_truffle\node_modules\truffle\build\webpack:\packages\migrate\Migration.js:171:1)
at Object.runMigrations (C:\Users\brand\B_truffle\node_modules\truffle\build\webpack:\packages\migrate\index.js:150:1)
at Object.runFrom (C:\Users\brand\B_truffle\node_modules\truffle\build\webpack:\packages\migrate\index.js:110:1)
at Object.run (C:\Users\brand\B_truffle\node_modules\truffle\build\webpack:\packages\migrate\index.js:87:1)
at runMigrations (C:\Users\brand\B_truffle\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:262:1)
at Object.run (C:\Users\brand\B_truffle\node_modules\truffle\build\webpack:\packages\core\lib\commands\migrate.js:227:1)
at Command.run (C:\Users\brand\B_truffle\node_modules\truffle\build\webpack:\packages\core\lib\command.js:136:1)
Truffle v5.1.65 (core: 5.1.65)
Node v16.1.0

3_deploy_upgradeable:

// migrations/3_deploy_upgradeable_box.js
const FFC = artifacts.require(‘FFC’);

const { deployProxy } = require(’@openzeppelin/truffle-upgrades’);

module.exports = async function (deployer) {
await deployProxy(FFC, [42], { deployer, initializer: ‘store’ });
};

I can’t figure this out. My FFC.sol compiles fine but once I add this, it fails.

Hi, welcome! :wave:

Maybe you have a look at this tutorial: