Create-React-App build - “Uncaught SyntaxError: Unexpected token <”

后端 未结 9 1455
予麋鹿
予麋鹿 2020-12-10 10:35

I realize this question has been asked multiple times but nothing has worked for me...

I\'m trying to create a static build of a create-react-app projec

9条回答
  •  不知归路
    2020-12-10 10:54

    i have faced kind of same issue when i want deploy my react app to github-pages :- its need's follow few guidelines

    1. Repository name should be in small latter

    2. If project name same as repo name that usefull

    3. affffd { "predeploy": "npm run build", "deploy": "gh-pages -d build" } on package.json

    4. add homepage script at the starting of the package.json

      { "homepage": "http://[Username].github.io/[reponame]", "name": "--", "version": "--", "private": boolean, }

提交回复
热议问题