[Bug] linkis-web-next build fails: router imports a non-existent file src/pages/ECMManagement/engine.vue
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 65/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript, vite
- Área
- frontend
Línea de trabajo
Lee linkis-web-next/src/router/index.ts e inspecciona linkis-web-next/src/pages/ECMManagement/, que según el issue contiene index.vue y modal.vue, pero no engine.vue. Ejecuta npx vite build en linkis-web-next para reproducir el import que falta. El issue sugiere añadir la página que falta para que funcione la ruta, o eliminar la ruta si no está prevista; se considera terminado cuando el cambio elegido resuelve el fallo de compilación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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!
- Lenguaje dominante
- Java
- Estrellas
- 3.4k
- Forks
- 1.2k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/linkis
-
[Bug] linkis-application-manager's RMUtils class has a logic bugQuizá libre de nuevo @zhang-arvin la tomó hace 58 días y no hay ningún pull request abierto. Abiertobug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
-
[Bug][CI] GitHub Actions startup failure: third-party actions not in ASF allow-listPosiblemente ocupada @aiceflower la tomó hace 20 días. Abiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
-
Scala Compilation is broken on master branch and recent PRsPosiblemente ocupada @pjfanning la tomó hace 36 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
-
[bug][CGS][entrance] parallelgroup cache not updated when entrance instance goes offlinePosiblemente ocupada @zhang-arvin la tomó hace 50 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
Todos los issues de apache/linkis
Issues similares
-
bug web-server
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jooby-project/jooby#4035 ·
Los mantenedores suelen responder en 1 día
-
L: javascript
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
dependabot/dependabot-core#16744 ·
Los mantenedores suelen responder en 1 día
-
intake mcp-intake needs-human-review priority:high type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Ikalus1988/MisakaNet#3987 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
quarkiverse/quarkus-google-cloud-services#1187 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
locationtech/jts#1250 ·