-
-
Notifications
You must be signed in to change notification settings - Fork 969
Closed
Closed
Copy link
Description
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.
Metadata
Metadata
Assignees
Labels
No labels