You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOC]: Update (dep) faker to use @faker-js/faker v7.6.0 instead in sandbox #1161
Check this if you would like to implement a PR, we are more than happy to help you go through the process.
Current and expected behavior
faker@latest is deprecated on npm.
Suggesting use of @faker-js/faker v7.6.0 in sandbox
Reproduction
When I got the snippet for Line chart from chartjs website I installed faker. But it was not working. I later found that faker@latest on npm was depricated.
chart.js version
v4.2.2
react-chartjs-2 version
v5.2.0
Possible solution
Use of @faker-js/faker with syntax similar to faker.
Closing: this concerns versions that are no longer maintained (react-chartjs-2 before v5, Chart.js v2 and v3), and the code has changed a lot since. If it still happens with the latest react-chartjs-2 and Chart.js 4, please open a new issue with a reproduction.
Fixed in #1360: the sandboxes use @faker-js/faker.
Activity
kkipngenokoech commentedon May 3, 2023
update from import faker from '

faker' to import { faker } from '@faker-js/faker'
dangreen commentedon Nov 30, 2026
Closing: this concerns versions that are no longer maintained (react-chartjs-2 before v5, Chart.js v2 and v3), and the code has changed a lot since. If it still happens with the latest react-chartjs-2 and Chart.js 4, please open a new issue with a reproduction.
Fixed in #1360: the sandboxes use
@faker-js/faker.