I am facing this build error in Golang V1.17 intermittently.
# gorm.io/driver/mysql
../../../../pkg/mod/gorm.io/driver/[email protected]/migrator.go:224:24: cannot use column (type Column) as type gorm.ColumnType in append:
Column does not implement gorm.ColumnType (missing AutoIncrement method)
I have tried restarting, clearing cache on VS Code, deleting go.mod and go.sum, and what-not.
Is there a workaround or something?
I solve it by update all relative package,it works: