umi4 build 时候如何屏蔽某些不合规 import 语句 #12522
Unanswered
ryanpeng-org
asked this question in
Q&A
Replies: 1 comment 5 replies
|
你是开了 forkTs 插件了吗,我随便写了一个导入,没构建报错。 如有问题,给一个最小复现看看吧。 |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
info - Preparing...
✘ [ERROR] No matching export in "xxxxxx" for import "Attachments"
fatal - Error: Build failed with 1 error:
umi4 build 时候如何 可以忽略这个报错,这句导入语句是生成的,有些废弃组件无法识别判断,所以会存在一些不存在模块导入,求助求助,之前在 umi3 时候的 esbuild 不会有这个报错的,升级之后就 gg 了😭😭😭
求助,提供一个屏蔽的方式
All reactions