aws-samples / aws-samples/bedrock-chat
[BUG] Frontend Deploy
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 535
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 10
Description
## Describe the bug
After deploying frontend code, when going to url, will give me:
```
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
registerSW.js:1 Uncaught SyntaxError: Unexpected token '<' (at registerSW.js:1:1)
manifest.webmanifest:1
```
## To Reproduce
1. Run deploy script
2. Run codedeploy for frontend
3. Go to url for frontend
## Screenshots
Contributor guide
Research direction
Start by running the deploy script and CodeDeploy flow described in the reproduction steps, then inspect how the frontend assets are served at the deployed URL. Confirm that module scripts, registerSW.js, and manifest.webmanifest receive their expected content types rather than HTML, and verify the result by revisiting the URL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, react, typescript
- Domain
- cloud, devops, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100