React Hook useEffect在为IPFS创建生产构建时缺少依赖警告



我试图使用Next.js创建IPFS的生产构建,当我尝试运行yarn build时,我遇到了这个错误:

68:8  Warning: React Hook useEffect has a missing dependency: 'updateUI'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
./components/ManualHeader.jsx
16:8  Warning: React Hook useEffect has a missing dependency: 'enableWeb3'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
27:8  Warning: React Hook useEffect has missing dependencies: 'Moralis' and 'deactivateWeb3'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
info  - Linting and checking validity of types
info  - Creating an optimized production build ...

info -Creating an optimized production build ...一直在闪烁。

我试图进入LotteryEntrance.jsManualheader.jsx,以消除缺失的依赖关系,只能摆脱UpdatedUI错误和enableWeb3错误,不能得到正确的MoralisdeactiveWeb3错误。

如果这篇文章的格式很糟糕,我很抱歉,我是新手,不太善于理解怎么问出了什么问题。

构建被挂起,因为服务器仍然在后台运行终止服务器终端并再次运行它允许我构建它