From 3c58251b60f6337de2d6e4cd183616deea4b932c Mon Sep 17 00:00:00 2001 From: Nicolas Zimmer Date: Tue, 8 Nov 2022 12:40:51 +0100 Subject: [PATCH] Fix faker problem https://stackoverflow.com/questions/21866285/cannot-find-module-faker-after-npm-install-save-dev --- database/seeders/100_Organizer.ts | 2 +- database/seeders/101_Location.ts | 2 +- database/seeders/102_Offer.ts | 2 +- database/seeders/999_User.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/database/seeders/100_Organizer.ts b/database/seeders/100_Organizer.ts index 74abf392..b9737de9 100644 --- a/database/seeders/100_Organizer.ts +++ b/database/seeders/100_Organizer.ts @@ -1,4 +1,4 @@ -import faker from 'faker'; +import faker from '@faker-js/faker'; import BaseSeeder from '@ioc:Adonis/Lucid/Seeder'; import { OrganizerFactory } from 'Database/factories/Organizer'; import { OrganizerStatus } from 'App/Models/Organizer/Organizer'; diff --git a/database/seeders/101_Location.ts b/database/seeders/101_Location.ts index b44dd008..a06e396d 100644 --- a/database/seeders/101_Location.ts +++ b/database/seeders/101_Location.ts @@ -1,4 +1,4 @@ -import faker from 'faker'; +import faker from '@faker-js/faker'; import BaseSeeder from '@ioc:Adonis/Lucid/Seeder'; import Organizer from 'App/Models/Organizer/Organizer'; import Location from 'App/Models/Location/Location'; diff --git a/database/seeders/102_Offer.ts b/database/seeders/102_Offer.ts index 0a4f3377..b117d9bd 100644 --- a/database/seeders/102_Offer.ts +++ b/database/seeders/102_Offer.ts @@ -2,7 +2,7 @@ import BaseSeeder from '@ioc:Adonis/Lucid/Seeder'; import Offer from 'App/Models/Offer/Offer'; import Organizer from 'App/Models/Organizer/Organizer'; import OrganizerType from 'App/Models/Organizer/OrganizerType'; -import faker from 'faker'; +import faker from '@faker-js/faker'; import { OfferFactory } from 'Database/factories/Offer'; import plays from '../../seeds/Offer/plays'; diff --git a/database/seeders/999_User.ts b/database/seeders/999_User.ts index 604f37cc..0d117a07 100644 --- a/database/seeders/999_User.ts +++ b/database/seeders/999_User.ts @@ -1,4 +1,4 @@ -import faker from 'faker'; +import faker from '@faker-js/faker'; import BaseSeeder from '@ioc:Adonis/Lucid/Seeder'; import Organizer from 'App/Models/Organizer/Organizer'; import { OrganizerRole } from 'App/Models/Roles';