LinuxSuRen / LinuxSuRen/api-testing

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

Đang mở
#415 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug legend
Ngôn ngữ chính
Go
Star
369
Fork
67
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

*Description*:

Console is start. but no.

*Repro steps*:

1. `npm i` or `cnpm i`
2. `npm run dev`

>**Note**: If there are privacy concerns, sanitize the data prior to
sharing.

*Environment*:

1. win 11
2. node 20.12.2 npm 9.8.1

*Logs*:
```
$ npm run dev

> atest-ui@v0.0.14 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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vue-codemirror@6.1.1/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/vue-codemirror@6.1.1/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\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1649:15)
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1058:25
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\esbuild@0.18.20\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/vite@4.5.3/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/vite@4.5.3/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vue-codemirror@6.1.1/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\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1649:15)
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1058:25
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\esbuild@0.18.20\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/vite@4.5.3/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/vite@4.5.3/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:64430:32)
X [ERROR] Could not resolve "codemirror"

node_modules/.store/vue-codemirror@6.1.1/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/vue-codemirror@6.1.1/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\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1649:15)
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1058:25
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\esbuild@0.18.20\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/vite@4.5.3/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/vite@4.5.3/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:44058:19)
at normalizeUrl (file:///D:/open_sources/apitesting/console/atest-ui/node_modules/.store/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/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/vite@4.5.3/node_modules/vite/dist/node/chunks/dep-41cf5ffd.js:64430:32)
X [ERROR] Could not resolve "codemirror"

node_modules/.store/vue-codemirror@6.1.1/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/vue-codemirror@6.1.1/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\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1649:15)
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\esbuild@0.18.20\node_modules\esbuild\lib\main.js:1058:25
at D:\open_sources\apitesting\console\atest-ui\node_modules\.store\esbuild@0.18.20\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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Reproduce from the console project with `npm i` followed by `npm run dev`, using the reported Windows and Node environment. Start with `src/App.vue`, `src/views/TestCase.vue`, and `src/views/types.ts`, then inspect the unresolved imports and the vue-codemirror error. Done means the development server starts without these dependency-resolution errors; the requested documentation update is not specified.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
node.js, typescript, vite
Lĩnh vực
build-system, frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

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.