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

[1.1.0] new version requires lib to include es2020 or later #206

Closed
AviVahl opened this issue May 8, 2021 · 0 comments
Closed

[1.1.0] new version requires lib to include es2020 or later #206

AviVahl opened this issue May 8, 2021 · 0 comments

Comments

@AviVahl
Copy link

AviVahl commented May 8, 2021

@sindresorhus I believe this was an unintended breaking change.
after upgrading to type-fest@1.1.0, I started getting the following type errors:

$ tsc --build
node_modules/type-fest/source/typed-array.d.ts:14:4 - error TS2583: Cannot find name 'BigInt64Array'. Do you need to change your target library? Try changing the `lib` compiler option to 'es2020' or later.

14  | BigInt64Array
      ~~~~~~~~~~~~~

node_modules/type-fest/source/typed-array.d.ts:15:4 - error TS2583: Cannot find name 'BigUint64Array'. Do you need to change your target library? Try changing the `lib` compiler option to 'es2020' or later.

15  | BigUint64Array;
      ~~~~~~~~~~~~~~


Found 2 errors.

I can see that typed-array.d.ts is nothing new, so my guess is that the index somehow started referencing it, where it didn't before.

A workaround is to change my lib to "es2020", or more specifically add "es2020.bigint".

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

1 participant