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

[Bug] linkis-web-next build fails: router imports a non-existent file src/pages/ECMManagement/engine.vue

Đang mở Phù hợp với người mới
#5,492 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ó
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ả

bug dependencies
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

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 apache/linkis

Tất cả issue của apache/linkis

Issue tương tự

Thêm issue về Java

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.