在Netlify中部署了我的第一个项目,但是该页面显示为空白。 (ReactJS)

时间:2020-03-22 18:09:16

标签: netlify

我正在尝试部署项目-第一次使用Netlify。我在ReactJs中制作了俄罗斯方块游戏。当我部署它时,终端告诉我构建良好。因此,当我单击链接时,键入“ Netlify Open”后,我得到一个空白页。

这是链接:https://friendly-jones-e24aad.netlify.com/

有人知道可能是什么问题吗?

我打开控制台,出现以下错误: enter image description here

这是我终端上进行的所有活动。任何帮助或线索均表示赞赏。

> ~/Desktop/Actualize$ npm install -g netlify-cli
> npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
> /usr/local/bin/netlify -> /usr/local/lib/node_modules/netlify-cli/bin/run
> /usr/local/bin/ntl -> /usr/local/lib/node_modules/netlify-cli/bin/run
> 
> > core-js@2.6.11 postinstall /usr/local/lib/node_modules/netlify-cli/node_modules/core-js
> > node -e "try{require('./postinstall')}catch(e){}"
> 
> Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
> 
> The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> > https://opencollective.com/core-js 
> > https://www.patreon.com/zloirock 
> 
> Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> 
> 
> > core-js@3.6.4 postinstall /usr/local/lib/node_modules/netlify-cli/node_modules/log-process-errors/node_modules/core-js
> > node -e "try{require('./postinstall')}catch(e){}"
> 
> 
> > netlify-cli@2.40.0 postinstall /usr/local/lib/node_modules/netlify-cli
> > node ./scripts/postinstall.js
> 
> 
> Success! Netlify CLI has been installed!
> 
> Your device is now configured to use Netlify CLI to deploy and manage your Netlify sites.
> 
> Next steps:
> 
>   netlify init     Connect or create a Netlify site from current directory
>   netlify deploy   Deploy the latest changes to your Netlify site
> 
> For more information on the CLI run netlify help
> Or visit the docs at https://cli.netlify.com
> 
> + netlify-cli@2.40.0
> added 1074 packages from 552 contributors in 45.552s
> ~/Desktop/Actualize$ cd tetris
> ~/Desktop/Actualize/tetris$ netlify deploy
> Logging into your Netlify account...
> Opening https://app.netlify.com/authorize?response_type=ticket&ticket=29f33f47c028110115309872cbdbcbad
> 
> You are now logged into your Netlify account!
> 
> Run netlify status for account details
> 
> To see all available commands run: netlify help
> 
> This folder isn't linked to a site yet
> ? What would you like to do? +  Create & configure a new site
> ? Team: mail-w1maf74's team
> Choose a unique site name (e.g. netlify-thinks-null-is-great.netlify.com) or leave it blank for a random name. You can update the site name later.
> ? Site name (optional): undefined
> 
> Site Created
> 
> Admin URL: https://app.netlify.com/sites/friendly-jones-e24aad
> URL:       https://friendly-jones-e24aad.netlify.com
> Site ID:   e411982a-94b0-40b9-8266-c7a7881ac1c7
> Please provide a publish directory (e.g. "public" or "dist" or "."):
> /Users/christiansolis/Desktop/Actualize/tetris
> ? Publish directory /Users/christiansolis/Desktop/Actualize/tetris/dist
> Deploy path: /Users/christiansolis/Desktop/Actualize/tetris/dist
> No such directory /Users/christiansolis/Desktop/Actualize/tetris/dist! Did you forget to create a functions folder or run a build?
> ~/Desktop/Actualize/tetris$ public
> -bash: public: command not found
> ~/Desktop/Actualize/tetris$ netlify open
> Open settings for the site linked to the current folder
> 
> USAGE
>   $ netlify open
> 
> OPTIONS
>   --admin  Open Netlify site
>   --site   Open site
> 
> EXAMPLES
>   netlify open --site
>   netlify open --admin
>   netlify open:admin
>   netlify open:site
> 
> COMMANDS
>   open:admin  Opens current site admin UI in Netlify
>   open:site   Opens current site url in browser
> 
> Opening "friendly-jones-e24aad" site admin UI:
> > https://app.netlify.com/sites/friendly-jones-e24aad
> ~/Desktop/Actualize/tetris$ netlify deploy
> Please provide a publish directory (e.g. "public" or "dist" or "."):
> /Users/christiansolis/Desktop/Actualize/tetris
> ? Publish directory /Users/christiansolis/Desktop/Actualize/tetris/public
> Deploy path: /Users/christiansolis/Desktop/Actualize/tetris/public
> Deploying to draft URL...
> ✔ Finished hashing 6 files
> ✔ CDN requesting 1 files
> ✔ Finished uploading 1 assets
> ✔ Draft deploy is live!
> 
> Logs:           https://app.netlify.com/sites/friendly-jones-e24aad/deploys/5e778c61fab062ac41dfbac4
> Live Draft URL: https://5e778c61fab062ac41dfbac4--friendly-jones-e24aad.netlify.com
> 
> If everything looks good on your draft URL, take it live with the --prod flag.
> netlify deploy --prod
> 
> ~/Desktop/Actualize/tetris$ netlify open
> Open settings for the site linked to the current folder
> 
> USAGE
>   $ netlify open
> 
> OPTIONS
>   --admin  Open Netlify site
>   --site   Open site
> 
> EXAMPLES
>   netlify open --site
>   netlify open --admin
>   netlify open:admin
>   netlify open:site
> 
> COMMANDS
>   open:admin  Opens current site admin UI in Netlify
>   open:site   Opens current site url in browser
> 
> Opening "friendly-jones-e24aad" site admin UI:
> > https://app.netlify.com/sites/friendly-jones-e24aad
> ~/Desktop/Actualize/tetris$ netlify deploy --prod
> Please provide a publish directory (e.g. "public" or "dist" or "."):
> /Users/christiansolis/Desktop/Actualize/tetris
> ? Publish directory /Users/christiansolis/Desktop/Actualize/tetris/public
> Deploy path: /Users/christiansolis/Desktop/Actualize/tetris/public
> Deploying to live site URL...
> ✔ Finished hashing 6 files
> ✔ CDN requesting 0 files
> ✔ Finished uploading 0 assets
> ✔ Deploy is live!
> 
> Logs:              https://app.netlify.com/sites/friendly-jones-e24aad/deploys/5e778c85608473cd39cbf49e
> Unique Deploy URL: https://5e778c85608473cd39cbf49e--friendly-jones-e24aad.netlify.com
> Live URL:          https://friendly-jones-e24aad.netlify.com
> ~/Desktop/Actualize/tetris$ subl .
> ~/Desktop/Actualize/tetris$ cd .. 
> ~/Desktop/Actualize$ cd tetris/
> ~/Desktop/Actualize/tetris$ netlify open
> Open settings for the site linked to the current folder
> 
> USAGE
>   $ netlify open
> 
> OPTIONS
>   --admin  Open Netlify site
>   --site   Open site
> 
> EXAMPLES
>   netlify open --site
>   netlify open --admin
>   netlify open:admin
>   netlify open:site
> 
> COMMANDS
>   open:admin  Opens current site admin UI in Netlify
>   open:site   Opens current site url in browser
> 
> Opening "friendly-jones-e24aad" site admin UI:
> > https://app.netlify.com/sites/friendly-jones-e24aad
> ~/Desktop/Actualize/tetris$ 
> ~/Desktop/Actualize/tetris$ netlify deploy
> Please provide a publish directory (e.g. "public" or "dist" or "."):
> /Users/christiansolis/Desktop/Actualize/tetris
> ? Publish directory /Users/christiansolis/Desktop/Actualize/tetris/public
> Deploy path: /Users/christiansolis/Desktop/Actualize/tetris/public
> Deploying to draft URL...
> ✔ Finished hashing 6 files
> ✔ CDN requesting 0 files
> ✔ Finished uploading 0 assets
> ✔ Draft deploy is live!
> 
> Logs:           https://app.netlify.com/sites/friendly-jones-e24aad/deploys/5e7799a6608473a689cbf40f
> Live Draft URL: https://5e7799a6608473a689cbf40f--friendly-jones-e24aad.netlify.com
> 
> If everything looks good on your draft URL, take it live with the --prod flag.
> netlify deploy --prod
> 
> ~/Desktop/Actualize/tetris$ netlify deploy

0 个答案:

没有答案