When using the most recent package version and the ERC20PresetMinterPauserUpgradeable preset, I still get the same error:
Error: Contract `MyToken` is not upgrade safe
@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol:56: Defining structs like `RoleData` is not yet supported
If you have manually checked for storage layout compatibility, you can skip this check with the `unsafeAllowCustomTypes` flag
https://zpl.in/upgrades/error-007
Hi @platocrat. It took a bit longer than a week, sorry about that, but the latest release of the upgrades plugin supports structs fully and automatically checks that upgrades are safe. Take a look at the announcement below!