79762622

Date: 2025-09-12 07:17:06
Score: 1
Natty:
Report link

The error happens because the original faker package on npm is no longer maintained and is essentially empty.
To fix this, you need to switch to the community-maintained fork @faker-js/faker.

First, remove the old package:

import { faker } from "@faker-js/faker";

console.log(faker.commerce.productName());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lokendra Parmar