Skip to content
Advertisement

Tag: faker

Unable to set up the new Faker library

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

Advertisement