[Bug] linkis-web-next build fails: router imports a non-existent file src/pages/ECMManagement/engine.vue
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- 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
- frontend
Hướng nghiên cứu
Đọc linkis-web-next/src/router/index.ts và kiểm tra linkis-web-next/src/pages/ECMManagement/, nơi theo issue có index.vue và modal.vue nhưng không có engine.vue. Chạy npx vite build trong linkis-web-next để tái hiện lỗi thiếu import. Issue đề xuất thêm trang còn thiếu để route hoạt động, hoặc xóa route nếu trang đó không nằm trong kế hoạch; công việc được xem là hoàn tất khi thay đổi đã chọn khắc phục lỗi build.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Search before asking
- I searched the issues and found no similar issues.
Linkis Component
linkis-web
Steps to reproduce
cd linkis-web-next
npm install
npx vite build
Expected behavior
The production build of linkis-web-next fails out of the box because the router references a Vue page that does not exist anywhere in the repository.
linkis-web-next/src/router/index.ts declares the route /console/ECMManagement/engines/:instance with a lazy import of @/pages/ECMManagement/engine.vue, but the file linkis-web-next/src/pages/ECMManagement/engine.vue was never committed. The directory only contains index.vue and modal.vue.
The defect exists both in the release-1.8.0 tag and in the current master branch.
Your environment
Linkis version: 1.8.0 (tag release-1.8.0, commit e2909eaf); also reproduced on master
OS: Windows 10 22H2 (platform-independent issue)
Node.js: 18.20.4, Vite: 6.2.4
Anything else
vite v6.2.4 building for production...
transforming...
✓ 192 modules transformed.
✗ Build failed in 3.08s
error during build:
[vite:load-fallback] Could not load D:...\linkis-web-next\src/pages/ECMManagement/engine.vue
(imported by src/router/index.ts):
ENOENT: no such file or directory, open '...\linkis-web-next\src\pages\ECMManagement\engine.vue'
Root cause
linkis-web-next/src/router/index.ts (around line 116):
{
name: 'Engines',
path: '/console/ECMManagement/engines/:instance',
component: () => import('@/pages/ECMManagement/engine.vue'),
meta: {
title: 'ECM Engines',
publicPage: true,
},
},
linkis-web-next/src/pages/ECMManagement/ on master / release-1.8.0 contains only:
index.vue
modal.vue
Expected behavior
npx vite build (and npm run build) should complete successfully in a clean checkout.
Suggested fix (two options)
Add the missing engine.vue page (recommended — keeps the /console/ECMManagement/engines/:instance route functional). A minimal placeholder page is enough to restore the build and can be polished later. PR will follow.
Alternatively, remove the dead route from the router if the page is not planned.
I will submit a PR implementing option 1 shortly.
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
- Ngôn ngữ chính
- Java
- Star
- 3.4k
- Fork
- 1.2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 apache/linkis
-
[Bug] linkis-application-manager's RMUtils class has a logic bugCó thể làm lại được @zhang-arvin đã nhận 59 ngày trước và không có pull request nào đang mở. Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
-
[Bug][CI] GitHub Actions startup failure: third-party actions not in ASF allow-listCó thể đã có người làm @aiceflower đã nhận 21 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Scala Compilation is broken on master branch and recent PRsCó thể đã có người làm @pjfanning đã nhận 37 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
-
[bug][CGS][entrance] parallelgroup cache not updated when entrance instance goes offlineCó thể đã có người làm @zhang-arvin đã nhận 51 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
Tất cả issue của apache/linkis
Issue tương tự
-
Component: Frontend Component: Web Component Type: Maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
it-at-m/refarch-templates#1944 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
priority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
googleapis/java-genai#1372 ·
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 60/100
-
GeoSeries scale and skew tests fail with pytest 9.2.0Có thể đã có người làm @jiayuasu đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Preventions: a dose saved without a unit reopens blank, and an unchanged save then erases itĐang mởpriority: medium Review effort [1-5]: 3 status: needs-triage type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
carlos-emr/carlos#5431 ·
Maintainer thường phản hồi trong vòng 1 ngày