Cannot call OpenZeppelin contract with `AccessControl` set for `mint` function, even though the account has admin permission

I am closing this as it is a duplicate topic of Cannot call OpenZeppelin contract with `AccessControl` in the `mint` function, even though the account has admin permission