[Bug] Console project not start & docs is need to update
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- node.js, typescript, vite
- 领域
- build-system, frontend
调研方向
使用报告的 Windows 和 Node 环境,在控制台项目中先运行 npm i,再运行 npm run dev 进行复现。从 src/App.vue、src/views/TestCase.vue 和 src/views/types.ts 开始,然后检查未解析的 imports 和 vue-codemirror 错误。开发服务器能够在没有这些依赖解析错误的情况下启动,即视为完成;所要求的文档更新未作说明。
由索引模型根据 Issue 内容生成。
描述
Description:
Console is start. but no.
Repro steps:
npm iorcnpm inpm run dev
Note: If there are privacy concerns, sanitize the data prior to
sharing.
Environment:
- win 11
- node 20.12.2 npm 9.8.1
Logs:
$ npm run dev
> [email protected] dev
> vite
VITE v4.5.3 ready in 686 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h to show help
Error: The following dependencies are imported but could not be resolved:
@element-plus/icons-vue (imported by D:/open_sources/apitesting/console/atest-ui/src/views/TestCase.vue?id=0)
lodash (imported by D:/open_sources/apitesting/console/atest-ui/src/views/types.ts)
Are they installed?
at file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:45779:23
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:45187:38
Failed to resolve import "@element-plus/icons-vue" from "src\App.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\SecretManager.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\StoreManager.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestingPanel.vue". Does the file exist?
22:01:16 [vite] Internal server error: Failed to resolve import "@element-plus/icons-vue" from "src\App.vue". Does the file exist?
Plugin: vite:import-analysis
File: D:/open_sources/apitesting/console/atest-ui/src/App.vue:7:7
5 | Location,
6 | Share
7 | } from "@element-plus/icons-vue";
| ^
8 | import { ref, watch } from "vue";
9 | import { API } from "./views/net";
at formatError (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44062:46)
at TransformContext.error (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41844:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41998:47
at async Promise.all (index 1)
at async TransformContext.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41914:13)
at async Object.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44352:30)
at async loadAndTransform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:55026:29)
at async viteTransformMiddleware (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:64430:32)
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestSuite.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestCase.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestingPanel.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\SecretManager.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\StoreManager.vue". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist? (x2)
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestCase.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestSuite.vue". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist? (x2)
X [ERROR] Could not resolve "codemirror"
node_modules/.store/[email protected]/node_modules/vue-codemirror/dist/vue-codemirror.esm.js:7:172:
7 │ ...,watch as a,onBeforeUnmount as i,h as c}from"vue";import{basicSetup as s}from"codemirror";import{EditorState as l,Compartment as f,StateEffect as d}from"@codemirror/...
╵ ~~~~~~~~~~~~
You can mark the path "codemirror" as external to exclude it from the bundle, which will remove
this error.
22:01:17 [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/.store/[email protected]/node_modules/vue-codemirror/dist/vue-codemirror.esm.js:7:172: ERROR: Could not resolve "codemirror"
at failureErrorWithLog (D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1649:15)
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1058:25
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1525:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
22:01:17 [vite] Internal server error: Failed to resolve import "@element-plus/icons-vue" from "src\App.vue". Does the file exist?
Plugin: vite:import-analysis
File: D:/open_sources/apitesting/console/atest-ui/src/App.vue:7:7
5 | Location,
6 | Share
7 | } from "@element-plus/icons-vue";
| ^
8 | import { ref, watch } from "vue";
9 | import { API } from "./views/net";
at formatError (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44062:46)
at TransformContext.error (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41844:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41998:47
at async Promise.all (index 1)
at async TransformContext.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41914:13)
at async Object.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44352:30)
at async loadAndTransform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:55026:29)
at async viteTransformMiddleware (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:64430:32)
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestingPanel.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\SecretManager.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\StoreManager.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestCase.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestSuite.vue". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist? (x2)
7 │ ...,watch as a,onBeforeUnmount as i,h as c}from"vue";import{basicSetup as s}from"codemirror";import{EditorState as l,Compartment as f,StateEffect as d}from"@codemirror/...
╵ ~~~~~~~~~~~~
You can mark the path "codemirror" as external to exclude it from the bundle, which will remove
this error.
22:01:18 [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/.store/[email protected]/node_modules/vue-codemirror/dist/vue-codemirror.esm.js:7:172: ERROR: Could not resolve "codemirror"
at failureErrorWithLog (D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1649:15)
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1058:25
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1525:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
22:05:34 [vite] Internal server error: Failed to resolve import "@element-plus/icons-vue" from "src\App.vue". Does the file exist?
Plugin: vite:import-analysis
File: D:/open_sources/apitesting/console/atest-ui/src/App.vue:7:7
5 | Location,
6 | Share
7 | } from "@element-plus/icons-vue";
| ^
8 | import { ref, watch } from "vue";
9 | import { API } from "./views/net";
at formatError (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44062:46)
at TransformContext.error (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41844:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41998:47
at async Promise.all (index 1)
at async TransformContext.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41914:13)
at async Object.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44352:30)
at async loadAndTransform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:55026:29)
at async viteTransformMiddleware (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:64430:32)
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestingPanel.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\SecretManager.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\StoreManager.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestCase.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestSuite.vue". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist? (x2)
22:05:35 [vite] Internal server error: Failed to resolve import "@element-plus/icons-vue" from "src\App.vue". Does the file exist?
Plugin: vite:import-analysis
File: D:/open_sources/apitesting/console/atest-ui/src/App.vue:7:7
5 | Location,
6 | Share
7 | } from "@element-plus/icons-vue";
| ^
8 | import { ref, watch } from "vue";
9 | import { API } from "./views/net";
at formatError (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44062:46)
at TransformContext.error (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41844:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41998:47
at async Promise.all (index 1)
at async TransformContext.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41914:13)
at async Object.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44352:30)
at async loadAndTransform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:55026:29)
at async viteTransformMiddleware (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:64430:32)
X [ERROR] Could not resolve "codemirror"
node_modules/.store/[email protected]/node_modules/vue-codemirror/dist/vue-codemirror.esm.js:7:172:
7 │ ...,watch as a,onBeforeUnmount as i,h as c}from"vue";import{basicSetup as s}from"codemirror";import{EditorState as l,Compartment as f,StateEffect as d}from"@codemirror/...
╵ ~~~~~~~~~~~~
You can mark the path "codemirror" as external to exclude it from the bundle, which will remove
this error.
Failed to resolve import "@element-plus/icons-vue" from "src\views\StoreManager.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\SecretManager.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestingPanel.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestSuite.vue". Does the file exist?
Failed to resolve import "@element-plus/icons-vue" from "src\views\TestCase.vue". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist?
Failed to resolve import "lodash" from "src\views\types.ts". Does the file exist? (x2)
22:05:35 [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/.store/[email protected]/node_modules/vue-codemirror/dist/vue-codemirror.esm.js:7:172: ERROR: Could not resolve "codemirror"
at failureErrorWithLog (D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1649:15)
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1058:25
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1525:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
22:05:35 [vite] Internal server error: Failed to resolve import "@element-plus/icons-vue" from "src\App.vue". Does the file exist?
Plugin: vite:import-analysis
File: D:/open_sources/apitesting/console/atest-ui/src/App.vue:7:7
5 | Location,
6 | Share
7 | } from "@element-plus/icons-vue";
| ^
8 | import { ref, watch } from "vue";
9 | import { API } from "./views/net";
at formatError (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44062:46)
at TransformContext.error (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41844:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41998:47
at async Promise.all (index 1)
at async TransformContext.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:41914:13)
at async Object.transform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44352:30)
at async loadAndTransform (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:55026:29)
at async viteTransformMiddleware (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/[email protected]/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:64430:32)
X [ERROR] Could not resolve "codemirror"
node_modules/.store/[email protected]/node_modules/vue-codemirror/dist/vue-codemirror.esm.js:7:172:
7 │ ...,watch as a,onBeforeUnmount as i,h as c}from"vue";import{basicSetup as s}from"codemirror";import{EditorState as l,Compartment as f,StateEffect as d}from"@codemirror/...
╵ ~~~~~~~~~~~~
You can mark the path "codemirror" as external to exclude it from the bundle, which will remove
this error.
22:05:36 [vite] error while updating dependencies:
Error: Build failed with 1 error:
node_modules/.store/[email protected]/node_modules/vue-codemirror/dist/vue-codemirror.esm.js:7:172: ERROR: Could not resolve "codemirror"
at failureErrorWithLog (D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1649:15)
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1058:25
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\[email protected]\node_modules\esbuild\lib\main.js:1525:9
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
And I didn't do anything other than the above steps.
- 主要语言
- Go
- 星标
- 369
- 派生
- 67
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
LinuxSuRen/api-testing 的其他 Issue
-
难度 5/5 一周以上 新手友好度 1/100
LinuxSuRen/api-testing#877 ·
-
Running via Docker results in an error when accessing the web page.可能重新可做 @yuluo-yx 于 183 天前认领,目前没有进行中的 PR。 未关闭
LinuxSuRen/api-testing#871 · 已指派 1 人 ·
-
bug
难度 3/5 1-2 天 新手友好度 42/100
LinuxSuRen/api-testing#828 · 1 个 reaction ·
-
ospp ui
难度 4/5 3-5 天 新手友好度 38/100
LinuxSuRen/api-testing#729 · 4 条评论 ·
-
[Feat]: Add In-App Feedback Button to Improve User Feedback Channels可能重新可做 @bhavESH-CHAWLA 于 124 天前认领,目前没有进行中的 PR。 未关闭enhancement ospp
LinuxSuRen/api-testing#706 · 4 条评论 · 已指派 1 人 ·
查看 LinuxSuRen/api-testing 的全部 Issue
相似的 Issue
-
accepted bug wg/router-models-inference-runtime
难度 2/5 1-3 小时 新手友好度 88/100
vllm-project/semantic-router#4524 · 1 条评论 ·
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
aws/aws-sdk-go-v2#3576 ·
维护者通常 1 天内回复
-
enhancement needs-verification phase-2-optimize
难度 2/5 1-3 小时 新手友好度 82/100
FootprintAI/Containarium#2277 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
keyxmakerx/Chronicle#1061 ·
维护者通常 1 天内回复