wait I had this issue
I didn‘t have this issue but I remember @ricmoo saying smth about EIP712 at the Denver ETHMagicians meeting. Anyways, seems this was moved into a class structure in v6 https://github.com/ethers-io/ethers.js/blob/v6.1.0/src.ts/hash/typed-data.ts