You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in src/config/modules/cdn.ts:49:1
TS2304: Cannot find name 'exports'.
47 | }
48 |
49 | exports.DEV_EXTERNALS = {}
| ^^^^^^^
50 |
ERROR in src/service/http/index.ts:5:27
TS7016: Could not find a declaration file for module 'events'. 'C:/Users/yanghj19/vue-admin-chart-main/node_modules/events/events.js' implicitly has an 'any' type.
Try npm i --save-dev @types/events if it exists or add a new declaration (.d.ts) file containing declare module 'events';
3 | */
4 | import axios from "axios"
5 | import EventEmitter from 'events'
| ^^^^^^^^
6 | import { G } from '@/config' //引入常量和配置信息
7 | import { ElLoading } from 'element-plus'
8 | // 导入模块
ERROR in src/views/form/other.vue:433:9
TS2322: Type '""' is not assignable to type 'EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>'.
431 | }
432 | const items = ref<Array>([
直接克隆后,npm i,npm run serve报以下错误
ERROR in src/config/config.ts:10:1
TS2304: Cannot find name 'exports'.
8 |
9 | //资源环境
ERROR in src/config/config.ts:14:1
TS2304: Cannot find name 'exports'.
12 | exports.EXTERNALS = PRODUCTION ? CDN.PROD_EXTERNALS : CDN.DEV_EXTERNALS
13 | //静态资源CDN
ERROR in src/config/config.ts:17:1
TS2304: Cannot find name 'exports'.
15 | //资源环境
16 | //Api restful 地址
ERROR in src/config/config.ts:19:1
TS2304: Cannot find name 'exports'.
17 | exports.BASE_URL = BASE.BASE_URL
18 | //DEV host 地址
ERROR in src/config/config.ts:21:1
TS2304: Cannot find name 'exports'.
19 | exports.DEV_HOST = BASE.DEV_HOST
20 | //DEV port 端口
ERROR in src/config/config.ts:23:1
TS2304: Cannot find name 'exports'.
21 | exports.DEV_PORT = BASE.DEV_PORT
22 | //DEV proxy
ERROR in src/config/config.ts:26:1
TS2304: Cannot find name 'exports'.
24 | //DEV环境数据使用 mock数据 还是api接口数据
25 | //value: mock | api default value: api
ERROR in src/config/modules/base.ts:5:4
TS2304: Cannot find name 'exports'.
3 | if (process.env.NODE_ENV === 'production') {
4 | //http restful API 请求地址
ERROR in src/config/modules/base.ts:8:3
TS2304: Cannot find name 'exports'.
6 | } else {
7 | //Dev开发环境 http restful API 请求地址
ERROR in src/config/modules/base.ts:11:1
TS2304: Cannot find name 'exports'.
9 | }
10 | /** 后缀地址(可以为版本目录,如:/v1) */
ERROR in src/config/modules/base.ts:14:1
TS2304: Cannot find name 'exports'.
12 |
13 | //DEV host 地址
ERROR in src/config/modules/base.ts:16:1
TS2304: Cannot find name 'exports'.
14 | exports.DEV_HOST = 'localhost'
15 | //DEV port 端口
ERROR in src/config/modules/base.ts:18:1
TS2304: Cannot find name 'exports'.
16 | exports.DEV_PORT = '8080'
17 | //DEV proxy
ERROR in src/config/modules/base.ts:21:1
TS2304: Cannot find name 'exports'.
19 | //DEV环境数据使用 mock数据 还是api接口数据
20 | //value: mock | api
ERROR in src/config/modules/cdn.ts:9:1
TS2304: Cannot find name 'exports'.
7 | const ver = pack.dependencies
8 | //生产环境的CDN连接地址 production cdn link
ERROR in src/config/modules/cdn.ts:28:1
TS2304: Cannot find name 'exports'.
26 |
27 | //DEV环境的CDN连接地址 dev cdn link
ERROR in src/config/modules/cdn.ts:38:1
TS2304: Cannot find name 'exports'.
36 |
37 | //cdn方式引入文件,以下文件不打包,使用外部CDN连接
ERROR in src/config/modules/cdn.ts:49:1
TS2304: Cannot find name 'exports'.
47 | }
48 |
ERROR in src/service/http/index.ts:5:27
TS7016: Could not find a declaration file for module 'events'. 'C:/Users/yanghj19/vue-admin-chart-main/node_modules/events/events.js' implicitly has an 'any' type.
Try
npm i --save-dev @types/events
if it exists or add a new declaration (.d.ts) file containingdeclare module 'events';
3 | */
4 | import axios from "axios"
ERROR in src/views/form/other.vue:433:9
TS2322: Type '""' is not assignable to type 'EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>'.
431 | }
432 | const items = ref<Array>([
The text was updated successfully, but these errors were encountered: