Skip to content

fix: add missing dependencies to console UI - #878

Merged
LinuxSuRen merged 1 commit into
LinuxSuRen:masterfrom
linuxsuren-fs:fix/console-missing-deps
Oct 9, 2026
Merged

LinuxSuRen merged 1 commit into
LinuxSuRen:masterfrom
linuxsuren-fs:fix/console-missing-deps

Conversation

@linuxsuren-fs

Copy link
Copy Markdown
Contributor

What

console/atest-ui imports lodash (in src/views/types.ts) and @element-plus/icons-vue (in ten views/components) without declaring them in package.json. A fresh clone followed by npm install && npm run dev (or build) fails with:

Failed to resolve import "@element-plus/icons-vue" ...
Failed to resolve import "lodash" ...

This PR declares both dependencies explicitly:

  • lodash@^4.17.21
  • @element-plus/icons-vue@^2.3.1 (matches the element-plus 2.x already in use)

package-lock.json only gains the two declarations — both packages were already resolved as transitive dependencies, so there is no version churn for any existing package.

Test

  • npm install — ok (1179 packages)
  • npx vite build — ok, 1860 modules transformed, dist/ generated
  • npm run type-check fails identically on master and on this branch (ScriptKind is not defined raised from @vue/language-core with the pinned typescript ~5.0.4 + vue-tsc ^3.0.0 on Node 24) — pre-existing and out of scope for this PR.

fix #415

lodash and @element-plus/icons-vue are imported by the source but were
never declared in package.json, which breaks a fresh npm install and
makes vite dev / build fail to resolve those imports.
@CLAassistant

CLAassistant commented Oct 9, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@sonarqubecloud

sonarqubecloud Bot commented Oct 9, 2026

Copy link
Copy Markdown

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity ✅ 0 (≤ 20 complexity)
Duplication ✅ 0 (≤ 1 duplication)

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@LinuxSuRen
LinuxSuRen merged commit 2ecfeea into LinuxSuRen:master Oct 9, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Console project not start & docs is need to update

3 participants