I am trying to set up the new @faker-js/faker library. So far, I did this: Added faker.d.ts at the top level. So the tree is like this: faker.d.ts contents is this: I am trying to use the mock like this: But am keep getting an error, saying Cannot find module ‘faker’ or its corresponding type declarations.ts(2307) Unable to resolve path
Tag: faker
Faker shows the same picture all the time, how to avoid it?
I am using faker in order to make array of random objects, like this: Actully what happens when making 12 elements like this – all the data is random but not the image, that is the same in every load. Every refresh there are other photoes, but all the elements in array constains the same image. What shall I do?