Skip to content

fix(entry): include cwd in "Cannot find entry" error - #1068

Open
lazerg wants to merge 1 commit into
rolldown:mainfrom
lazerg:fix/issue-1067-entry-error-cwd
Open

lazerg wants to merge 1 commit into
rolldown:mainfrom
lazerg:fix/issue-1067-entry-error-cwd

Conversation

@lazerg

@lazerg lazerg commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

AI usage

  • No AI was used in this PR.
  • AI was used:
    • I have carefully reviewed the AI-generated content myself.

Description

When a workspace include glob matches a directory with no package.json and no config of its own, tsdown still builds that directory with the merged root config, so it inherits the root entry and the root name. Entry resolution matches nothing there and the build fails with [root-name] Cannot find entry: [...]. That message points at the root package and carries no path, so working out which directory actually broke the build takes a while in a large monorepo.

The error now ends with the resolved cwd, which names the offending directory.

Linked Issues

Fixes #1067

Additional context

The new unit test fails on main and passes here.

@netlify

netlify Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for tsdown-main ready!

Name Link
🔨 Latest commit b3052f0
🔍 Latest deploy log https://app.netlify.com/projects/tsdown-main/deploys/6aa32459a3df060008a026fe
😎 Deploy Preview https://deploy-preview-1068--tsdown-main.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@pkg-pr-new

pkg-pr-new Bot commented Sep 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

tsdown

pnpm add https://pkg.pr.new/rolldown/tsdown@1068 -D
npm i https://pkg.pr.new/rolldown/tsdown@1068 -D
yarn add https://pkg.pr.new/rolldown/tsdown@1068.tgz -D

create-tsdown

pnpm add https://pkg.pr.new/rolldown/tsdown/create-tsdown@1068 -D
npm i https://pkg.pr.new/rolldown/tsdown/create-tsdown@1068 -D
yarn add https://pkg.pr.new/rolldown/tsdown/create-tsdown@1068.tgz -D

@tsdown/css

pnpm add https://pkg.pr.new/rolldown/tsdown/@tsdown/css@1068 -D
npm i https://pkg.pr.new/rolldown/tsdown/@tsdown/css@1068 -D
yarn add https://pkg.pr.new/rolldown/tsdown/@tsdown/css@1068.tgz -D

@tsdown/exe

pnpm add https://pkg.pr.new/rolldown/tsdown/@tsdown/exe@1068 -D
npm i https://pkg.pr.new/rolldown/tsdown/@tsdown/exe@1068 -D
yarn add https://pkg.pr.new/rolldown/tsdown/@tsdown/exe@1068.tgz -D

tsdown-migrate

pnpm add https://pkg.pr.new/rolldown/tsdown/tsdown-migrate@1068 -D
npm i https://pkg.pr.new/rolldown/tsdown/tsdown-migrate@1068 -D
yarn add https://pkg.pr.new/rolldown/tsdown/tsdown-migrate@1068.tgz -D

commit: b3052f0

@lazerg

lazerg commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

@sxzz, please have a look when you have time

@sxzz
sxzz force-pushed the main branch 3 times, most recently from ef50c5b to 1309e6d Compare November 6, 2026 09:51

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant