My AWS Amplify + React app throws an Uncaught TypeError when running the production build, but works just fine with react-scripts start.
"Error: Unable to upload artifact referenced by Location parameter of resource. 'S3Uploader' object is not subscriptable."
While working on a multi-stack AWS SAM package I came across this rather obscure error: Error: Unable to upload artifact ../../spa-hosting.yaml referenced by Location parameter of Hosting resource. ‘S3Uploader’ object is not subscriptable