简体   繁体   English

Netlify 部署卡住,无法部署

[英]Netlify Deployment stuck and will not deploy

I have no clue what it wrong... someone please check it out: Here is the last few lines of the deployment log:我不知道它出了什么问题......请有人检查一下:这是部署日志的最后几行:

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.

Any help will be greatly appreciated.My deployment in netlify just gets stuck and says " Deploy in progress"任何帮助将不胜感激。我在 netlify 中的部署只是卡住并说“正在部署”

Also, I can start a local server with yarn start and it works fine.另外,我可以用yarn start启动一个本地服务器,它工作正常。 This only occurs when deploying to netlify.这仅在部署到 netlify 时发生。 (using react) (使用反应)

Build of your application stucks because you have errors in your code, in the log above there are printed specific lines on which you have errors, along with description where the issues comes from.您的应用程序的构建卡住了,因为您的代码中有错误,在上面的日志中打印了您有错误的特定行,以及问题出处的描述。 Try to fix them, then if your deployment is still stuck kill the pipeline and then deploy the new fixed version.尝试修复它们,然后如果您的部署仍然卡住,请终止管道,然后部署新的修复版本。 Should work then.那时应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM