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

后端 未结 9 1437
予麋鹿
予麋鹿 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 11:11

    If you are deploying your client to S3, when deploying with react-deploy-s3, assign the distribution-id from CloudFront

    react-deploy-s3 deploy \
      --access-key-id XXXXXXXXXXXXXXXXX \
      --secret-access-key XXXXXXXXXXXXXXXXXXXXXXXX \
      --bucket XXXXXXX \
      --region us-east-1 \
      --distribution-id XXXXXXXXXXXXX                        <---
    

提交回复
热议问题