Netlify 部署卡住了,不会部署
Netlify Deployment stuck and will not deploy
我不知道哪里出了问题...有人请检查一下!这是部署日志的最后几行:
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'
任何帮助都将是巨大的 appreciated.My netlify 中的部署卡住了并说“
正在部署
此外,我可以使用 yarn start
启动本地服务器并且它工作正常。这仅在部署到 netlify 时发生。 (使用反应)
你的应用程序的构建卡住了,因为你的代码中有错误,在上面的日志中打印了你有错误的特定行,以及问题出处的描述。尝试修复它们,如果您的部署仍然卡住,则终止管道,然后部署新的修复版本。应该可以了。
我不知道哪里出了问题...有人请检查一下!这是部署日志的最后几行:
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'
任何帮助都将是巨大的 appreciated.My netlify 中的部署卡住了并说“ 正在部署
此外,我可以使用 yarn start
启动本地服务器并且它工作正常。这仅在部署到 netlify 时发生。 (使用反应)
你的应用程序的构建卡住了,因为你的代码中有错误,在上面的日志中打印了你有错误的特定行,以及问题出处的描述。尝试修复它们,如果您的部署仍然卡住,则终止管道,然后部署新的修复版本。应该可以了。