Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Unknown argument: models

Seguindo o curso, na aula 2, tentei rodar o comando

npx sequelize-cli model:generate --name Pessoas --attributes nome:string,ativo:boolean,email:string,role:string

e esse foi o retorno.

Sequelize CLI [Node: 16.13.0, CLI: 6.3.0, ORM: 6.12.0-alpha.1]

Options:
  --version          Show version number                                                                                                     [boolean]
  --help             Show help                                                                                                               [boolean]
  --env              The environment to run the command in                                                           [string] [default: "development"]
  --config           The path to the config file                                                                                              [string]
  --options-path     The path to a JSON file with additional options                                                                          [string]
  --migrations-path  The path to the migrations folder                                                                [string] [default: "migrations"]
  --seeders-path     The path to the seeders folder                                                                      [string] [default: "seeders"]
  --models-path      The path to the models folder                                                                        [string] [default: "models"]
  --url              The database connection string to use. Alternative to using --config files                                               [string]
  --debug            When available show various debug information                                                          [boolean] [default: false]
  --name             Defines the name of the new model                                                                             [string] [required]
  --attributes       A list of attributes                                                                                          [string] [required]
  --force            Forcefully re-creates model with the same name                                                                           [string]
  --underscored      Use snake case for the timestamp's attribute names                                                     [boolean] [default: false]

Unknown argument: models

não sei qual o problema se alguém puder me ajudar estaria muito agradecido.

1 resposta
solução!

Descobri o problema :) tinha um erro de digitação no arquivo ".sequelizerc", se alguém tiver algum erro semelhante o problema deve ser aí também.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software