Module.futures is not iterable while deploying an Upgradeable Contract

This is part of my upgradeable Contract:

contract Shibo is Initializable, ERC20Upgradeable, ERC20BurnableUpgradeable, ERC20PausableUpgradeable, OwnableUpgradeable, UUPSUpgradeable {
    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() {
        _disableInitializers();
    }

    IERC20 public AToken;
    uint8 public constant ATOKEN_DECIMALS = 18;

    // function initialize(address initialOwner) initializer public {
    function initialize(address initialOwner, address ATokenAddress) initializer public {
        __ERC20_init("MyToken", "MTK");
        __ERC20Burnable_init();
        __ERC20Pausable_init();
        __Ownable_init(initialOwner);
        __UUPSUpgradeable_init();
        AToken = IERC20(ATokenAddress);
    }
...
} 

This is my Hardhat deployment script, to deploy to local network:

async function main() {

    const { ethers, upgrades } = require("hardhat");

    // Define your initial parameters
    const initialOwner = "OwnerAddress";
    const ATokenAddress = "ATokenAddress";

    // Get contract factory
    const MyContract = await ethers.getContractFactory("MyContract");

    // Deploy proxy with initialization parameters
    const myContract = await upgrades.deployProxy(MyContract, [initialOwner, ATokenAddress], {
        initializer: "initialize",
    });

    await myContract.deployed();
}

main()
    .then(() => process.exit(0))
    .catch((error) => {
        console.error(error);
        process.exit(1);
    });

I get this error when running the above deployment script:

TypeError: module.futures is not iterable
at getFuturesFromModule (/node_modules/@nomicfoundation/ignition-core/src/internal/utils/get-futures-from-module.ts:8:21)
at validate (/node_modules/@nomicfoundation/ignition-core/src/internal/validation/validate.ts:27:39)
at deploy (/node_modules/@nomicfoundation/ignition-core/src/deploy.ts:92:42)
at SimpleTaskDefinition.action (/node_modules/@nomicfoundation/hardhat-ignition/src/index.ts:302:30)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Environment._runTaskDefinition (/node_modules/hardhat/src/internal/core/runtime-environment.ts:359:14)
at Environment.run (/node_modules/hardhat/src/internal/core/runtime-environment.ts:192:14)
at main (/node_modules/hardhat/src/internal/cli/cli.ts:323:7)