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
> tsc
node_modules/.pnpm/@faker-js+faker@6.0.0-alpha.3/node_modules/@faker-js/faker/index.ts:4:1 - error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
4 export = faker;
~~~~~~~~~~~~~~~
Found 1 error.
Describe the bug
Typescript gives the error:
This is fixed by adding the "types" field:
From:
To:
Reproduction
https://github.com/pabloszx/faker-error-types
Additional Info
"@faker-js/faker": "6.0.0-alpha.3"
The text was updated successfully, but these errors were encountered: