[Bug] linkis-web-next build fails: router imports a non-existent file src/pages/ECMManagement/engine.vue
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript, vite
- 领域
- frontend
调研方向
阅读 linkis-web-next/src/router/index.ts,并检查 linkis-web-next/src/pages/ECMManagement/;issue 称其中包含 index.vue 和 modal.vue,但没有 engine.vue。在 linkis-web-next 中运行 npx vite build,以复现缺失的导入。issue 建议添加缺失的页面以使路由正常工作,或者在没有计划支持该页面时删除路由;选定的更改解决构建失败后,即视为完成。
由索引模型根据 Issue 内容生成。
描述
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!
- 主要语言
- Java
- 星标
- 3.4k
- 派生
- 1.2k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/linkis 的其他 Issue
-
[Bug] linkis-application-manager's RMUtils class has a logic bug可能重新可做 @zhang-arvin 于 61 天前认领,目前没有进行中的 PR。 未关闭bug
难度 1/5 1 小时以内 新手友好度 86/100
-
[Bug][CI] GitHub Actions startup failure: third-party actions not in ASF allow-list可能已有人在做 @aiceflower 于 23 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 35/100
-
Scala Compilation is broken on master branch and recent PRs可能已有人在做 @pjfanning 于 39 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 38/100
-
[bug][CGS][entrance] parallelgroup cache not updated when entrance instance goes offline可能已有人在做 @zhang-arvin 于 53 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 55/100
-
难度 4/5 3-5 天 新手友好度 28/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
IdentityArrayObjectSet iterator remove may throw ArrayIndexOutOfBoundsException可能已有人在做 @jiteshkhatri11 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
javapathfinder/jpf-core#660 · 1 条评论 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
breaking change bug needs human review not ready priority medium size S
难度 2/5 1-3 小时 新手友好度 76/100
martin-francois/symphony-trello#1193 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复