导出成员“StatSyncFn”出现问题

发布于 2025-01-14 03:13:14 字数 324 浏览 2 评论 0原文

我的构建中有这个错误,我不知道从哪里来,为什么,是这样的...

Error: node_modules/webpack-dev-middleware/types/index.d.ts:204:27 - error TS2694: Namespace '"fs"' has no exported member 'StatSyncFn'.

 statSync?: import("fs").StatSyncFn;

我尝试重新安装 webpack,但是不知道该怎么做,我将恢复这个错误...

有一些解决方案或想法吗?拜托,

谢谢大家的帮助...

There is this error on my build, i dont no from where and why, is coming like this...

Error: node_modules/webpack-dev-middleware/types/index.d.ts:204:27 - error TS2694: Namespace '"fs"' has no exported member 'StatSyncFn'.

 statSync?: import("fs").StatSyncFn;

I have try to re-install webpack, but and don't know what, i will doing for resume this error...

Having some solutions or ideas for ? Please,

Thank all us for you help...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浮华 2025-01-21 03:13:14

您检查过这个这个

有 2 个可能的原因:

  1. 尚未将节点更新到最新的 ([email protected ] => [电子邮件受保护]) 版本
  2. 目标位置混乱。

**最有可能更新 npm 和 fs-extra 可以解决

Did you check this and this.

There are 2 possible reasons:

  1. Haven't updated node to latest ([email protected] => [email protected]) version
  2. Messed-up with destination locations.

**most probably updating npm and fs-extra would solve

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文