Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I was creating document_types table using following cli command

sequelize model:create --name User --attributes name:string, username:string, email:string, password:string
like image 354
Akshay Vijay Jain Avatar asked Aug 19 '19 08:08

Akshay Vijay Jain


1 Answers

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
like image 71
Akshay Vijay Jain Avatar answered Oct 28 '22 20:10

Akshay Vijay Jain