Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

create-tsrouter-app scaffold fails out of the box with pnpm on Linux

Đang mở
#395 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Lĩnh vực
build-system, cli

Hướng nghiên cứu

Bắt đầu bằng cách xác định scaffold template của TanStack Start và các định nghĩa dependency trong package.json của nó, sau đó tái hiện lỗi bằng pnpm install và pnpm dev trên Linux. Điều tra các lỗi esbuild postinstall và lightningcss native-binary đã được báo cáo; công việc được xem là hoàn tất khi một project vừa được scaffold có thể cài đặt và khởi động mà không cần thay đổi dependency thủ công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Which project does this relate to?

Router

Describe the bug

Running pnpm install and pnpm dev on a freshly scaffolded TanStack Start project fails immediately without any modifications.

Your Example Website or App

none

Steps to Reproduce the Bug or Issue

Steps to reproduce

  1. Scaffold a new project using the TanStack Start template
  2. pnpm install
  3. pnpm dev
Expected behavior

Expected behavior

A freshly scaffolded project should work after pnpm install with no manual fixes required.

Screenshots or Videos

No response

Platform

Environment

OS Linux x64 (Ubuntu)
Node v22.22.0
pnpm v10.30.1
@tanstack/react-start 1.162.4
Additional context

First error: esbuild postinstall fails with:

Error: Expected "0.27.3" but got ""

The scaffold pins esbuild@0.27.3 directly in dependencies, which has a broken postinstall script under Node 22.

Second error (after removing esbuild from dependencies and letting it be a transitive dep): lightningcss native binary missing:

Error: Cannot find module '../lightningcss.linux-x64-gnu.node'

pnpm's strict symlinking means the lightningcss-linux-x64-gnu optional dependency binary never gets linked into lightningcss's node/ directory.

Ngôn ngữ chính
TypeScript
Star
1.3k
Fork
185
Merge trung bình
18 giờ 45 phút
Pull request đã merge (30 ngày)
2

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/cli

Tất cả issue của TanStack/cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.