umi icon indicating copy to clipboard operation
umi copied to clipboard

fix: dva export type

Open xiaohuoni opened this issue 2 years ago • 3 comments

修改前,联想能找到对象,但是看不到类型提示。 image

修改后 image

xiaohuoni avatar Jun 29 '22 03:06 xiaohuoni

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
umi ✅ Ready (Inspect) Visit Preview Jun 29, 2022 at 3:05AM (UTC)

vercel[bot] avatar Jun 29 '22 03:06 vercel[bot]

Codecov Report

Merging #8296 (2fc5ebd) into master (a3e7119) will not change coverage. The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #8296   +/-   ##
=======================================
  Coverage   33.97%   33.97%           
=======================================
  Files         358      358           
  Lines        9288     9288           
  Branches     2136     2136           
=======================================
  Hits         3156     3156           
  Misses       5787     5787           
  Partials      345      345           
Impacted Files Coverage Δ
packages/plugins/src/dva.ts 39.06% <0.00%> (ø)
packages/babel-preset-umi/src/index.ts 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a3e7119...2fc5ebd. Read the comment docs.

codecov[bot] avatar Jun 29 '22 03:06 codecov[bot]

同类问题应该还有,我想的解法是把 alias 加到 .umi/tsconfig.json 里。

因为 dva 这个包是不存在的,其他的导出,倒是没注意到还有同类问题

xiaohuoni avatar Jun 29 '22 06:06 xiaohuoni

这个问题什么时候修复好呢

yunyi1895 avatar Sep 13 '22 05:09 yunyi1895

https://github.com/umijs/umi/blob/43d373f35114378ec63cd3c66ca85a1997cd3f03/packages/preset-umi/src/features/tmpFiles/tmpFiles.ts#L583

xiaohuoni avatar Sep 28 '22 02:09 xiaohuoni