components icon indicating copy to clipboard operation
components copied to clipboard

Getting strange error: 28s › Serverless › There's a problem with your files and they could not be loaded by this Component. Original error: Response code 403 (Forbidden)

Open bugb opened this issue 2 years ago • 1 comments

Description

I can not use serverless to deploy.

Additional Data

name: myapp
org: myorg
inputs: # The configuration the Component accepts
  src:
    src: ./src
    hook: npm run build
    dist: ./dist
  domain: mydomain

I have set AWS as my default provider but I can not make it works.

Getting strange error:

28s › Serverless › There's a problem with your files and they could not be loaded by this Component.  Original error: Response code 403 (Forbidden)  

image

bugb avatar Aug 10 '21 08:08 bugb

I had the same problem while using create-react-app, the issue was that the dist folder is set to ./build by default when using CRA.

try changing your dist to: dist: ./build

julienvallet avatar Dec 10 '21 16:12 julienvallet