mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #770] [MERGED] fix: restore baseUrl in hackernews tsconfig to fix build #831
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#831
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/770
Author: @james-elicx
Created: 4/3/2026
Status: ✅ Merged
Merged: 4/3/2026
Merged by: @james-elicx
Base:
main← Head:fix/hackernews-baseurl-resolution📝 Commits (1)
56dd4acfix: restore baseUrl in hackernews tsconfig to fix bare-specifier resolution📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
examples/hackernews/tsconfig.json(+1 -0)📄 Description
Problem
The hackernews example build was broken by the security audit PR (#769), which removed
"baseUrl": "."fromexamples/hackernews/tsconfig.jsonas a TypeScript 6 deprecation cleanup.That option is load-bearing: the entire
app/andcomponents/tree uses bare specifiers ('components/skeletons','lib/get-comments','components/comment', etc.) that Vite resolves by readingbaseUrlfrom the tsconfig. Without it, Rolldown cannot find those modules and the RSC build fails:Fix
Restore
"baseUrl": ".". ThenoEmit: trueaddition from #769 is kept — only thebaseUrlremoval is reverted.Other examples (
app-router-playground,fumadocs-docs-template) already keepbaseUrlfor the same reason. When TypeScript 7 actually removes support, the right fix will be to switch to explicitpathsaliases or addvite-tsconfig-paths— not to silently break the app.Fixes the deploy regression introduced by #769.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.