React Router wizard generates a Vite config that references an undefined `config`
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript, vite
- Lĩnh vực
- tooling
Hướng nghiên cứu
Start in src/react-router/codemods/vite.ts, reading createSentryPluginCall and addReactRouterPluginToViteConfig to see where the config identifier is emitted. Look for the existing codemod tests for that file, then reproduce the three shapes from the issue: a function config with a differently named parameter, with no parameter, and with a destructured parameter. Done means the generated Vite config builds for each of those, or the wizard declines and prints manual instructions.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Environment
@sentry/wizard master (b262ed0, 9.1.0 plus one commit), React Router integration, Vite 7. Reproduced by running the wizard's Vite codemod directly and building with the Sentry plugin stubbed, not a full wizard run.
Steps to Reproduce
- Have a function config whose parameter is not named
config:import { defineConfig } from "vite"; export default defineConfig(({ mode }) => ({ plugins: [] })); - Run
npx @sentry/wizard -i reactRouter. - Run
vite build.
Expected Result
The build works. The plugin receives the config the function was called with, or the wizard falls back to manual instructions.
Actual Result
The codemod always passes an identifier named config:
export default defineConfig(({mode}) => ({
plugins:[sentryReactRouter({ /* ... */ }, config)],
// ...
}));
error during build:
ReferenceError: config is not defined
See createSentryPluginCall and addReactRouterPluginToViteConfig in src/react-router/codemods/vite.ts. From reading the code, functions without a parameter or with a differently named one are affected too.
- Ngôn ngữ chính
- TypeScript
- Star
- 297
- Fork
- 88
- Merge trung bình
- 5 giờ 29 phút
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-wizard
-
bug Next.js
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
getsentry/sentry-wizard#1397 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/sentry-wizard#1396 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
React Router Framework
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
getsentry/sentry-wizard#1392 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
getsentry/sentry-wizard#1391 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Cocoa Improvement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
getsentry/sentry-wizard#989 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của getsentry/sentry-wizard
Issue tương tự
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Có thể đã có người làm @goranai đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checksCó thể đã có người làm @Raj1v đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
backnotprop/plannotator#4046 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
進捗部屋の管理画面で削除対象を月ごとに絞り込むĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
traPtitech/knoQ_R-UI#290 ·
Maintainer thường phản hồi trong vòng 24 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
farion1231/cc-switch#9981 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
account bug course exam iris lecture
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày