diff --git a/template/server/bin/seed.ts b/template/server/bin/seed.ts index 4a526954..5e74810e 100644 --- a/template/server/bin/seed.ts +++ b/template/server/bin/seed.ts @@ -22,7 +22,7 @@ const seed = async () => { for (const filePath of filePaths) { const { default: SeederClass } = await import( - path.join(fixturesPath, filePath) + `file://${path.join(fixturesPath, filePath)}` ); const seeder = new SeederClass() as AbstractSeeder;