FuAdmin / fu-admin

采用当前最流行的技术栈 Vben Vue Vue3 Python Django Ninja(Fast Api 和 Django的结合)开发的后端管理系统
Apache License 2.0
522 stars 109 forks source link

X [ERROR] No matching export in "src/views/fuadmin/system/account/account.api.ts" for import "getAllList" #9

Closed fenglm2021 closed 2 months ago

fenglm2021 commented 1 year ago

(fu-admin-py3.11.1) E:\workspacejx\python\fu-admin\web>pnpm dev

                                                                                                                                                                            10:16:28  

vite v2.9.5 dev server running at:

Network: https://192.168.1.3:8080/ 10:16:28
Local: https://localhost:8080/ 10:16:28
10:16:28
ready in 2793ms.

X [ERROR] No matching export in "src/views/fuadmin/system/account/account.api.ts" for import "getAllList"

script:E:/workspacejx/python/fu-admin/web/src/components/Form/src/components/UserSelect.vue?id=0:11:11:
  11 │   import { getAllList } from "/@/views/fuadmin/system/account/account.api";
     ╵            ~~~~~~~~~~

ERROR Build failed with 1 error: 10:16:29
script:E:/workspacejx/python/fu-admin/web/src/components/Form/src/components/UserSelect.vue?id=0:11:11: ERROR: No matching export in "src/views/fuadmin/system/account/account.api.ts" for import "getAllList"

fenglm2021 commented 1 year ago

看了一下,问题原因是:account.api.ts中的getAllList代码被注释了,注释解开执行pnpm dev运行不报错