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

Vite warning

Đang mở
#860 0 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
64/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu với vite.config.mts và năm tệp bên dưới vite-config/ được nêu trong cảnh báo, sau đó chạy build để tái hiện cảnh báo đó. Kiểm tra package.json gần nhất và các thiết lập module hiện tại trước khi thực hiện thay đổi. Hoàn tất khi build hoàn thành mà không có các cảnh báo native-loader và module đã nêu, đồng thời kiểm tra riêng cảnh báo sourcemap.

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

Mô tả

enhancement

I think we will need to change the toolkit so that we have .mjs build files generated and change the type to module. we get this warning when running the build

(!) Your Vite config uses features that are unsupported by configLoader: 'native', which is planned to become the default in a future major version of Vite:

  • import "./vite-config/css" without a file extension (vite.config.mts:7:17). Add the file extension
  • import "./vite-config/resolve" without a file extension (vite.config.mts:8:27). Add the file extension
  • import "./vite-config/styles" without a file extension (vite.config.mts:9:26). Add the file extension
  • import "./vite-config/cdn" without a file extension (vite.config.mts:10:44). Add the file extension
  • import "./vite-config/components" without a file extension (vite.config.mts:11:82). Add the file extension
  • ESM syntax in a file loaded as CommonJS (vite-config/css.ts:2:1). Use a .mjs extension or set "type": "module" in the closest package.json
  • ESM syntax in a file loaded as CommonJS (vite-config/resolve.ts:1:1). Use a .mjs extension or set "type": "module" in the closest package.json
  • ESM syntax in a file loaded as CommonJS (vite-config/styles.ts:1:1). Use a .mjs extension or set "type": "module" in the closest package.json
  • ESM syntax in a file loaded as CommonJS (vite-config/cdn.ts:1:1). Use a .mjs extension or set "type": "module" in the closest package.json
  • ESM syntax in a file loaded as CommonJS (vite-config/components.ts:1:1). Use a .mjs extension or set "type": "module" in the closest package.json
    Set VITE_CONFIG_NATIVE_IGNORE_WARNING=true to suppress this warning.
    vite v8.2.1 building client environment for cdn-legacy...
    ✓ 333 modules transformed.
    computing gzip size...
    dist/solid-ui.js 1,353.32 kB
    dist/solid-ui.min.js 1,353.32 kB │ gzip: 385.05 kB │ map: 4,235.03 kB

[plugin @tailwindcss/vite:generate:build] [SOURCEMAP_BROKEN] Sourcemap is likely to be incorrect: a plugin (@tailwindcss/vite:generate:build) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help: https://rolldown.rs/guide/troubleshooting#warning-sourcemap-is-likely-to-be-incorrect

Ngôn ngữ chính
TypeScript
Star
153
Fork
46
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
7

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 SolidOS/solid-ui

Tất cả issue của SolidOS/solid-ui

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.