Skip to content
New issue

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

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

Already on GitHub? # to your account

The requested module 'get-stream' does not provide an export named 'buffer' #2265

Closed
2 tasks done
mshima opened this issue May 26, 2023 · 0 comments · Fixed by #2266
Closed
2 tasks done

The requested module 'get-stream' does not provide an export named 'buffer' #2265

mshima opened this issue May 26, 2023 · 0 comments · Fixed by #2266

Comments

@mshima
Copy link
Contributor

mshima commented May 26, 2023

Describe the bug

  • Node.js version: 16.20.0
  • OS & version:

Actual behavior

import { buffer as getBuffer } from 'get-stream';
         ^^^^^^
SyntaxError: The requested module 'get-stream' does not provide an export named 'buffer'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)

Expected behavior

Module should be imported correctly

Code to reproduce

Package content at (dist/source/core/index.js):

import { buffer as getBuffer } from 'get-stream';

get-stream is a commonjs package.

Checklist

  • I have read the documentation.
  • I have tried my code with the latest version of Node.js and Got.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant