Adonis seed command with error

adonis seed

SyntaxError: Invalid shorthand property initializer

1 anonymous
D:\Repositorios\Projetos\desenv\ppa-asspa-go\node_modules@adonisjs\ignitor\src\Ignitor\index.js:376

2 Ignitor._loadPreLoadFiles
D:\Repositorios\Projetos\desenv\ppa-asspa-go\node_modules@adonisjs\ignitor\src\Ignitor\index.js:368

3 Ignitor.fire
D:\Repositorios\Projetos\desenv\ppa-asspa-go\node_modules@adonisjs\ignitor\src\Ignitor\index.js:779

4 async Ignitor.fireAce
D:\Repositorios\Projetos\desenv\ppa-asspa-go\node_modules@adonisjs\ignitor\src\Ignitor\index.js:846

Hi @sdbmcc and welcome to community!

If you are using Windows try to close editor (especially if it is VSCode) and then run npm install again (or npm ci)

1 Like

I found the error, it was an error in file database / factory.js file, I had uncommented the content. By the way the adonis seed command checks it as well as content inside database / seeds.

thank you

1 Like