我不知道是怎么回事.谁来看看啊!下面是部署日志的最后几行:
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中的appreciated.My部署,只需卡住并说“部署正在进行”。
此外,我还可以使用yarn start
启动本地服务器,并且运行良好。只有在部署到netlify时才会发生这种情况。(使用反应)
发布于 2021-12-05 22:35:23
因为您的代码中有错误,所以构建应用程序堆栈,上面的日志中有您有错误的打印的特定行,以及问题的来源描述。尝试修复它们,然后如果您的部署仍然停滞不前,关闭管道,然后部署新的固定版本。应该会起作用的。
https://stackoverflow.com/questions/70239094
复制相似问题