Create-react-app: deploying on surge

Created on 17 Oct 2017  路  5Comments  路  Source: facebook/create-react-app

referring #1850.
after changing path to build folder it shows error

after running this command:

nilesh@nilesh:~/chat.susi.ai$ surge

Surge - surge.sh

email: [email protected]
token: *****
project path: /home/nilesh/chat.susi.ai/build
size: 58 files, 30.3 MB
domain: incredible-exchange.surge.sh
upload: [====================] 100%, eta: 0.0s
propagate on CDN: [====================] 100%
plan: Free
users: [email protected]
IP Address: 45.55.110.124

Success! Project is published and running at incredible-exchange.surge.sh


nothing shows after that just a blank page.please help!!

screenshot froddd

question

Most helpful comment

@Timer Thanks for your suggestion. I had already solved the problem by completely removing the "homepage" attribute from package.json.

All 5 comments

If you notice the network requests, it's looking for http://incredible-exchange.surge.sh/myapp/static/css/main.4ef8ce6c.css.

Please remove the myapp portion from your homepage within package.json -- it'll start working then. 馃槃

@Timer I also faced the same problem

@Timer thanks

@Timer Thanks for your suggestion. I had already solved the problem by completely removing the "homepage" attribute from package.json.

Yep; @wongjiahau, thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ap13p picture ap13p  路  3Comments

fson picture fson  路  3Comments

JimmyLv picture JimmyLv  路  3Comments

stopachka picture stopachka  路  3Comments

dualcnhq picture dualcnhq  路  3Comments