aws-amplify / aws-amplify/amplify-hosting

Script errors breaking page when going to the failed build step of an app

Open
#2,105 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Dockerfile
Stars
481
Forks
123
PR merge metrics
No merged PRs in 30d

Description

### Before opening, please confirm:

- [X] I have checked to see if my question is addressed in the [FAQ](https://github.com/aws-amplify/amplify-console/blob/master/FAQ.md).
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-console/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-console/blob/master/CONTRIBUTING.md).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

### App Id

d2aglqcztk4ej8

### Region

us-east-1

### Amplify Console feature

Not applicable

### Describe the bug

When navigating to an app, and then to the (failed) build step, there are a bunch of JS errors of which one breaks the page (see screenshot below).

This happens consistently, however I've had occasional "success" where the script didn't fail (but about 95% of the time it will).

A hard refresh will make the page work.

### Expected behavior

Scripts not to hit errors ;)

### Reproduction steps

1. Go to "All apps"
2. Select an app
3. Click the "Build" step
4. Errors should appear

### Build Settings

_No response_

### Additional information

![image](https://user-images.githubusercontent.com/1668207/127365573-7388ac77-c77b-4f5d-92a2-4557d3a78b1c.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by opening an app from “All apps,” selecting the “Build” step, and watching the browser console for the reported JavaScript errors. Compare normal navigation with a hard refresh; done means the failed build step loads without page-breaking script errors during the documented sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.