在vite+vue3+ts时pnpm build打包失败


                                                            ~~~~~

node_modules/.pnpm/element-plus@2.7.5_vue@3.4.27_typescript@5.4.5_/node_modules/element-plus/es/utils/objects.d.ts:1:30 - error TS2307: Cannot find module 'type-fest' or its corresponding type declarations.

1 import type { Entries } from 'type-fest';
                               ~~~~~~~~~~~

node_modules/.pnpm/pinia@2.1.7_typescript@5.4.5_vue@3.4.27_typescript@5.4.5_/node_modules/pinia/dist/pinia.d.ts:354:26 -
 error TS2536: Type 'key' cannot be used to index type 'Store<string, S, G, {}>'.

354     [key in Keys]: () => Store<string, S, G, {}>[key];
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 47 errors in 19 files.

Errors  Files
     5  node_modules/.pnpm/@vueuse+core@9.13.0_vue@3.4.27_typescript@5.4.5_/node_modules/@v

解决办法:

增加:"skipLibCheck":true

最近更新

  1. TCP协议是安全的吗?

    2024-06-17 20:52:03       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-17 20:52:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-17 20:52:03       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-17 20:52:03       20 阅读

热门阅读

  1. cocosCreator获取手机剪切板内容

    2024-06-17 20:52:03       7 阅读
  2. python 多线程

    2024-06-17 20:52:03       9 阅读
  3. C++之std::lock_guard和std::unique_lock

    2024-06-17 20:52:03       9 阅读
  4. 异常类型处理 3.0

    2024-06-17 20:52:03       7 阅读
  5. Docker学习

    2024-06-17 20:52:03       6 阅读
  6. 【力扣】目标和

    2024-06-17 20:52:03       7 阅读
  7. 从0到1实现YOLOv3

    2024-06-17 20:52:03       7 阅读