When I use '@faker-js/faker'' I get an error when ...
# orm-help
a
When I use '@faker-js/faker'' I get an error when I try to assign values let's say: name: faker.name The error says
Copy code
Type 'Name' is not assignable to type 'string'.
m
Maybe the API changed slightly? Do you have a code example?
👍 2
r
isn't it `
Copy code
faker.name.firstName()
?
👍 1
👀 1
Looks like @Marc-Antoine Ferland is right - it should be
Copy code
const randomName = faker.name.findName(); // Rowan Nikolaus
(from https://fakerjs.dev/guide/#installation )
a
Yeah, you are right it's my fault and not the library it seems I left it with name, so it didn't know what type to put
its working now
🙌 2