This error occurs when the project is imported
Error content:
Argument of type 'any' is not assignable to parameter of type 'never'.ts(2345)
const userInfo: {
userIcon: string;
realname: string;
sex: string;
}
Try the following solution
But there is still an error on the role side, the error content:
Property 'role' does not exist on type '{ userIcon: string; realname: string; sex: string; }'.ts(2339)
any
Try the following modification again to solve it.