Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix @pierre/diffs import path to resolve Vite build error#3074

Draft
cursor[bot] wants to merge 3 commits into
main from
cursor/component-performance-optimization-3ab5
Draft

Fix @pierre/diffs import path to resolve Vite build error #3074
cursor[bot] wants to merge 3 commits into
main from
cursor/component-performance-optimization-3ab5

Conversation

@cursor

@cursor cursor Bot commented Jun 13, 2026
edited by macroscopeapp Bot
Loading

Copy link
Copy Markdown
Contributor

Problem

The development server was failing to load the /draft/react-scan-demo route due to a module resolution error:

Cannot find module './utils/parsePatchFiles' is not exported under the conditions ["module", "browser", "development", "import"] from package @pierre/diffs

Solution

Changed the import in apps/web/src/lib/diffRendering.ts from:

import { parsePatchFiles } from "@pierre/diffs/utils/parsePatchFiles";

to:

import { parsePatchFiles } from "@pierre/diffs";

The parsePatchFiles function is exported from the main package entry point, and the subpath import was not listed in the package's exports field.

Testing

  • ✅ Vite dev server starts without module resolution errors
  • ✅ React Scan toolbar visible and functional on the demo route
  • ⚠️ Full application testing blocked by backend server configuration issues (separate from this fix)

Note

Fix @pierre/diffs import path in diffRendering.ts to resolve Vite build error

  • Changes the parsePatchFiles import in diffRendering.ts from @pierre/diffs/utils/parsePatchFiles to @pierre/diffs, fixing a Vite build failure caused by an invalid deep import path.
  • Adds optional seeding of the composer draft store on startup when VITE_REACT_SCAN_DEMO === "1", pre-populating a scoped project ref and thread metadata for react-scan demo use.
  • Loads the react-scan auto script from a CDN via a script tag in index.html.
📊 Macroscope summarized 53be870. 1 file reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted

🗂️ Filtered Issues

No issues evaluated.

The import was using a non-exported subpath './utils/parsePatchFiles' which
caused Vite to fail during development. The parsePatchFiles function is
exported from the main '@pierre/diffs' package entry point.
Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Jun 13, 2026
Comment thread apps/web/index.html Outdated
cursoragent and others added 2 commits June 13, 2026 16:26
Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>

github-actions Bot commented Jun 13, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

🚀 Expo continuous deployment is ready!

  • Project → t3-code
  • Platforms → android, ios
  • Scheme → t3code-preview
🤖 Android 🍎 iOS
Fingerprint ae17d94b35f91f9c608a63dadbc3ddd9f4ba056e 313e506a7f15a9c3f15b01d787d68a12382432bf
Build Details Build Permalink
DetailsDistribution: INTERNAL
Build profile: preview:dev
Runtime version: ae17d94b35f91f9c608a63dadbc3ddd9f4ba056e
App version: 0.1.0
Git commit: 475f3d4cd6e263d12d6ff1569ee84eed50a7c00a
Build Permalink
DetailsDistribution: INTERNAL
Build profile: preview:dev
Runtime version: 313e506a7f15a9c3f15b01d787d68a12382432bf
App version: 0.1.0
Git commit: 475f3d4cd6e263d12d6ff1569ee84eed50a7c00a
Update Details Update Permalink
DetailsBranch: pr-3074
Runtime version: ae17d94b35f91f9c608a63dadbc3ddd9f4ba056e
Git commit: 973a7fea38b0e3e498e88e0cb7824b495336a502
Update Permalink
DetailsBranch: pr-3074
Runtime version: 313e506a7f15a9c3f15b01d787d68a12382432bf
Git commit: 973a7fea38b0e3e498e88e0cb7824b495336a502
Update QR

@github-actions github-actions Bot added size:XS 0-9 changed lines (additions + deletions). and removed size:S 10-29 changed lines (additions + deletions). labels Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /