EIP 1559 metamask issue

MetaMask - RPC Error: Invalid transaction envelope type: specified type “0x0” but including maxFeePerGas and maxPriorityFeePerGas requires type: “0x2”

Can anyone help me with this sudden error in my dapp.

This is how I mint new NFTs in my dapp await contract.methods .mint(index.toString()) .send({ from: account, value: buyAmount.toString() });

Hey, nope, I am still facing the issue