Skip to content

Fix typings #17

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

Merged

Conversation

rob-gijsens
Copy link
Contributor

@rob-gijsens rob-gijsens commented Sep 2, 2021

Fix for issue with following configuration:
read-chunk: 4.0.1
Node.js version: 14.17.6
Typescript version: 4.4.2

When trying to build project with read-chunk installed, the following error occured:
image

The fix in this PR is to add brackets around the import for the Buffer module to do a named import instead.

Runned the unit test in the project and they still pass as before.

@sindresorhus sindresorhus changed the title fix(typings): fix import for non existing default module Fix typings Sep 2, 2021
@sindresorhus sindresorhus merged commit c11353a into sindresorhus:main Sep 2, 2021
sindresorhus pushed a commit that referenced this pull request Sep 2, 2021
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

Successfully merging this pull request may close these issues.

2 participants