Use forge-std/console2.sol instead of forge-std/console.sol
In forge-std readme from foundry book they recommend use console2
Note: console2.sol contains patches to console.sol that allows Forge to decode traces for calls to the console, but it is not compatible with Hardhat.
Source
Use
forge-std/console2.sol
instead offorge-std/console.sol
In forge-std readme from foundry book they recommend use console2