egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
8.49k stars 209 forks source link

"Stream" is not exported by "node:stream" #1006

Open hengshanMWC opened 9 months ago

hengshanMWC commented 9 months ago

tsup Version

7.2.0

Operating System (or Browser)

macOS 11.4

Node Version (if applicable)

18.12.1

Link To Reproduction

https://github.com/hengshanMWC/pkgs/tree/clie-test

Expected Behaviour

pnpm i pnpm run build build success

Actual Behaviour

RollupError: "Stream" is not exported by "node:stream", imported by "node_modules/execa/index.d.ts". at error (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:353:30) at Module.error (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:15232:16) at Module.traceVariable (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:15662:29) at ModuleScope.findVariable (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:14109:39) at FunctionScope.findVariable (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:8625:38) at Identifier.bind (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:9818:40) at AssignmentPattern.bind (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:7405:23) at FunctionDeclaration.bind (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:7401:28) at Program.bind (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:7401:28) at Module.bindReferences (/Applications/code/github/pkgs/node_modules/.pnpm/rollup@3.29.2/node_modules/rollup/dist/shared/rollup.js:15228:18) Error: error occured in dts build at Worker. (/Applications/code/github/pkgs/node_modules/.pnpm/tsup@7.2.0_typescript@4.6.2/node_modules/tsup/dist/index.js:2294:26) at Worker.emit (node:events:513:28) at MessagePort. (node:internal/worker:233:53) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:731:20) at exports.emitMessage (node:internal/per_context/messageport:23:28) DTS Build error

execa: 8.0.1

image

Upvote & Fund

Fund with Polar