Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't work with faker v7 #4

Closed
homerchen19 opened this issue Jun 12, 2022 · 1 comment
Closed

Can't work with faker v7 #4

homerchen19 opened this issue Jun 12, 2022 · 1 comment

Comments

@homerchen19
Copy link
Contributor

faker removed default export from v7.0.0
It's a breaking change, so the way of importing faker (https://github.com/zoubingwu/msw-auto-mock/blob/master/src/template.ts#L14) should be changed to import { faker } from '@faker-js/faker';. Otherwise it can't work with faker v7.

@zoubingwu
Copy link
Owner

@homerchen19 Thanks! fixed and published in 0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants