Skip to content

docs: correct tsconfig paths alias in vite-ssr-tsr-react example - #4271

Merged
pi0 merged 2 commits into
nitrojs:mainfrom
ZDSJdeJT:fix/tsr-react-tsconfig
May 18, 2026
Merged

pi0 merged 2 commits into
nitrojs:mainfrom
ZDSJdeJT:fix/tsr-react-tsconfig

Conversation

@ZDSJdeJT

Copy link
Copy Markdown
Contributor

The @/* path alias in examples/vite-ssr-tsr-react/tsconfig.json pointed to sec/*, which does not exist. This causes TypeScript to fail resolving modules imported via @/.

Changed "sec/*" to "./src/*" to match the actual project structure and align with the convention used in examples/vite-ssr-tss-react/tsconfig.json.

@ZDSJdeJT
ZDSJdeJT requested a review from pi0 as a code owner May 18, 2026 12:39
@vercel

vercel Bot commented May 18, 2026

Copy link
Copy Markdown

@ZDSJdeJT is attempting to deploy a commit to the Nitro Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Corrects the vite-ssr-tsr-react example's TypeScript path alias so @/* resolves to ./src/* and updates the docs to match.

Changes

TypeScript Configuration

Layer / File(s) Summary
TypeScript path alias correction
examples/vite-ssr-tsr-react/tsconfig.json, docs/4.examples/vite-ssr-tsr-react.md
The @/* path alias mapping is changed from sec/* to ./src/*; the example documentation line is updated to reflect the new mapping.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the problem and solution, directly addressing the changes made to the TypeScript path alias.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title 'docs: correct tsconfig paths alias in vite-ssr-tsr-react example' follows conventional commits format with a 'docs:' prefix, clearly describes the change (correcting a tsconfig path alias), and accurately reflects the main purpose of the PR.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pi0 pi0 changed the title fix(vite-ssr-tsr-react): correct tsconfig paths alias chree(examples): correct tsconfig paths alias in vite-ssr-tsr-react May 18, 2026

@pi0 pi0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thnx!

@pi0 pi0 changed the title chree(examples): correct tsconfig paths alias in vite-ssr-tsr-react docs(examples): correct tsconfig paths alias in vite-ssr-tsr-react May 18, 2026
@pi0 pi0 changed the title docs(examples): correct tsconfig paths alias in vite-ssr-tsr-react docs: correct tsconfig paths alias in vite-ssr-tsr-react example May 18, 2026
@pkg-pr-new

pkg-pr-new Bot commented May 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nitro@4271

commit: c9e2199

@pi0
pi0 merged commit 3126539 into nitrojs:main May 18, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants