ERROR: Attribute '' cannot be parsed: Cannot read property 'dataType' of undefined
Asked Answered
E

1

5

I was creating document_types table using following cli command

sequelize model:create --name User --attributes name:string, username:string, email:string, password:string
Edee answered 19/8, 2019 at 8:58 Comment(0)
E
24

Solution: remove the space after comma between different attributes to avoid the error, correct command would be:

sequelize model:create --name User --attributes name:string,username:string,email:string,password:string
Edee answered 19/8, 2019 at 8:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.