aws-samples / lambda-refarch-imagerecognition

The Image Recognition and Processing Backend reference architecture demonstrates how to use AWS Step Functions to orchestrate a serverless processing workflow using AWS Lambda, Amazon S3, Amazon DynamoDB and Amazon Rekognition.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frontend build fails with: Can't resolve 'maplibre-gl'

tplatt37 opened this issue · comments

As of this morning, the install fails on the Frontend build with this error "Module not found: Error: Can't resolve 'maplibre-gl' in '/codebuild/output/src687896026/src/lambda-refarch-imagerecognition/src/react-frontend/node_modules/@aws-amplify/ui-react/dist/esm/components/Geo/MapView'"

Does anyone know how to resolve this?

                             # Executing command: npm run build

2022-04-07T13:12:55.950Z [INFO]: > photo-sharing-webapp-react@0.1.1 build /codebuild/output/src687896026/src/lambda-refarch-imagerecognition/src/react-frontend
> react-scripts build
2022-04-07T13:12:57.173Z [INFO]: Creating an optimized production build...
2022-04-07T13:13:05.259Z [INFO]: Failed to compile.
2022-04-07T13:13:05.262Z [INFO]: Module not found: Error: Can't resolve 'maplibre-gl' in '/codebuild/output/src687896026/src/lambda-refarch-imagerecognition/src/react-frontend/node_modules/@aws-amplify/ui-react/dist/esm/components/Geo/MapView'