aws-samples / aws-samples/bedrock-chat

[BUG] Frontend Deploy

Open
#532 1 comment 0 reactions 0 assignees View on GitHub
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

Screenshot 2024-09-16 at 11 15 27 AM

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.