zyronon / douyin

Vue3 + Pinia 仿抖音,Vue 在移动端的最佳实践 . Imitate TikTok ,Vue Best practices on Mobile
https://dy.ttentau.top/
GNU General Public License v3.0
9.92k stars 2.73k forks source link

问题报告 | Bug report vite.config.ts defineConfig 报错 #80

Closed huchase closed 6 months ago

huchase commented 6 months ago

1、描述

vite.config.ts defineConfig 报错,git clone & pnpm i 后没有更改任何代码,defineConfig 报错

No overload matches this call.
  The last overload gave the following error.
    Argument of type '() => Promise<unknown>' is not assignable to parameter of type 'UserConfigExport'.
      Type '() => Promise<unknown>' is not assignable to type 'UserConfigFnObject'.
        Type 'Promise<unknown>' has no properties in common with type 'UserConfig'.ts(2769)
index.d.ts(3154, 18): The last overload is declared here.

2、截图 image

zyronon commented 6 months ago

已修复,给箭头函数定义一个返回值就可以了