我不知道出了什么問題……有人請檢查一下!這是部署日志的最后幾行:
5:10:16 PM: ────────────────────────────────────────────────────────────────
5:10:16 PM: 1. Build command from Netlify app
5:10:16 PM: ────────────────────────────────────────────────────────────────
5:10:16 PM: ?
5:10:16 PM: $ npm start --force
5:10:17 PM: npm WARN using --force Recommended protections disabled.
5:10:17 PM: > frontend_base_dapp@0.1.0 start
5:10:17 PM: > react-scripts start
5:10:19 PM: ? ?wds?: Project is running at http://10.4.210.17/
5:10:19 PM: ? ?wds?: webpack output is served from
5:10:19 PM: ? ?wds?: Content not from webpack is served from /opt/build/repo/public
5:10:19 PM: ? ?wds?: 404s will fallback to /
5:10:19 PM: Starting the development server...
5:10:19 PM:
5:10:40 PM: Compiled with warnings.
5:10:40 PM:
5:10:40 PM: src/App.js
5:10:40 PM: Line 2:8: 'logo' is defined but never used no-unused-vars
5:10:40 PM: src/Mint.js
5:10:40 PM: Line 1:38: 'useRef' is defined but never used no-unused-vars
5:10:40 PM: Line 97:6: React Hook useEffect has a missing dependency: 'getData'. Either include it or remove the dependency array react-hooks/exhaustive-deps
5:10:40 PM: Line 128:39: Expected '===' and instead saw '==' eqeqeq
5:10:40 PM: Line 136:19: Using target="_blank" without rel="noreferrer" (which implies rel="noopener") is a security risk in older browsers: see https://mathiasbynens.github.io/rel-noopener/#recommendations react/jsx-no-target-blank
5:10:40 PM: src/redux/blockchain/blockchainActions.js
5:10:40 PM: Line 47:23: Expected '===' and instead saw '==' eqeqeq
5:10:40 PM: Search for the keywords to learn more about each warning.
5:10:40 PM: To ignore, add // eslint-disable-next-line to the line before.
5:38:33 PM: Build exceeded maximum allowed runtime
5:38:36 PM: Failed to compile.
5:38:36 PM:
5:38:36 PM: ./src/index.js
5:38:36 PM: Error: ENOENT: no such file or directory, open '/opt/build/repo/src/index.js'
任何幫助將不勝感激。我在 netlify 中的部署被卡住并說“正在部署”
另外,我可以用yarn start它啟動本地服務器,它作業正常。這僅在部署到 netlify 時發生。(使用反應)
uj5u.com熱心網友回復:
您的應用程式的構建卡住了,因為您的代碼中有錯誤,在上面的日志中,列印了您有錯誤的特定行,以及問題來自何處的描述。嘗試修復它們,然后如果您的部署仍然卡住,請終止管道,然后部署新的固定版本。那么應該作業。
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/378849.html
標籤:javascript 节点.js 新产品经理 部署 网路化
