-
-
Notifications
You must be signed in to change notification settings - Fork 260
Closed
Labels
Description
I added CI for a project using the latest version of tsup-node
(6.6.3) and when I build I get the following error:
Error: s/jellycommands build: X [ERROR] The injected path "D:\\a\\jellycommands\\jellycommands\\node_modules\\.pnpm\\tsup@6.6.3_typescript@4.9.5\\node_modules\\tsup\\assets\\esm_shims.js" cannot be marked as external
Error: s/jellycommands build: X [ERROR] The injected path "D:\\a\\jellycommands\\jellycommands\\node_modules\\.pnpm\\tsup@6.6.3_typescript@4.9.5\\node_modules\\tsup\\assets\\cjs_shims.js" cannot be marked as external
Full Error Message
packages/jellycommands build$ tsup-node
packages/jellycommands build: CLI Building entry: src/index.ts
packages/jellycommands build: CLI Using tsconfig: tsconfig.json
packages/jellycommands build: CLI tsup v6.6.3
packages/jellycommands build: CLI Using tsup config: D:\a\jellycommands\jellycommands\packages\jellycommands\tsup.config.ts
packages/jellycommands build: CLI Target: esnext
packages/jellycommands build: CLI Cleaning output folder
packages/jellycommands build: ESM Build start
packages/jellycommands build: CJS Build start
Error: s/jellycommands build: X [ERROR] The injected path "D:\\a\\jellycommands\\jellycommands\\node_modules\\.pnpm\\tsup@6.6.3_typescript@4.9.5\\node_modules\\tsup\\assets\\esm_shims.js" cannot be marked as external
Error: s/jellycommands build: X [ERROR] The injected path "D:\\a\\jellycommands\\jellycommands\\node_modules\\.pnpm\\tsup@6.6.3_typescript@4.9.5\\node_modules\\tsup\\assets\\cjs_shims.js" cannot be marked as external
packages/jellycommands build: CJS Build failed
packages/jellycommands build: Error: Build failed with 1 error:
packages/jellycommands build: error: The injected path "D:\\a\\jellycommands\\jellycommands\\node_modules\\.pnpm\\tsup@6.6.3_typescript@4.9.5\\node_modules\\tsup\\assets\\cjs_shims.js" cannot be marked as external
packages/jellycommands build: at failureErrorWithLog (D:\a\jellycommands\jellycommands\node_modules\.pnpm\esbuild@0.17.10\node_modules\esbuild\lib\main.js:1636:15)
packages/jellycommands build: at D:\a\jellycommands\jellycommands\node_modules\.pnpm\esbuild@0.17.10\node_modules\esbuild\lib\main.js:1048:25
packages/jellycommands build: at runOnEndCallbacks (D:\a\jellycommands\jellycommands\node_modules\.pnpm\esbuild@0.17.10\node_modules\esbuild\lib\main.js:1471:45)
packages/jellycommands build: at buildResponseToResult (D:\a\jellycommands\jellycommands\node_modules\.pnpm\esbuild@0.17.10\node_modules\esbuild\lib\main.js:1046:7)
packages/jellycommands build: at D:\a\jellycommands\jellycommands\node_modules\.pnpm\esbuild@0.17.10\node_modules\esbuild\lib\main.js:1075:16
packages/jellycommands build: at responseCallbacks.<computed> (D:\a\jellycommands\jellycommands\node_modules\.pnpm\esbuild@0.17.10\node_modules\esbuild\lib\main.js:697:9)
packages/jellycommands build: at handleIncomingPacket (D:\a\jellycommands\jellycommands\node_modules\.pnpm\esbuild@0.17.10\node_modules\esbuild\lib\main.js:752:9)
packages/jellycommands build: at Socket.readFromStdout (D:\a\jellycommands\jellycommands\node_modules\.pnpm\esbuild@0.17.10\node_modules\esbuild\lib\main.js:673:7)
packages/jellycommands build: at Socket.emit (node:events:513:28)
packages/jellycommands build: at addChunk (node:internal/streams/readable:324:[12](https://github.com/ghostdevv/jellycommands/actions/runs/4247263100/jobs/7385097518#step:6:13))
packages/jellycommands build: ESM Build failed
packages/jellycommands build: DTS Build start
packages/jellycommands build: DTS ⚡️ Build success in 3581ms
packages/jellycommands build: DTS dist\index.d.ts [14](https://github.com/ghostdevv/jellycommands/actions/runs/4247263100/jobs/7385097518#step:6:15).[24](https://github.com/ghostdevv/jellycommands/actions/runs/4247263100/jobs/7385097518#step:6:25) KB
packages/jellycommands build: Failed
I haven't been able to figure out what is wrong here, I even tried with a stripped down version of my config:
import type { Options } from 'tsup';
export const tsup: Options = {
// splitting: false,
// sourcemap: false,
// clean: true,
// dts: true,
// keepNames: true,
// target: 'esnext',
// format: ['esm', 'cjs'],
entryPoints: ['src/index.ts'],
shims: true,
};
psulek, filename24, agoldis and hiimjasmine00