Domain/Website deploy fail

#Website deployment fail
Hey there, one of my websites - stormacademy.netlify.app - went down yesterday and I can’t seem to get it back up.

I have tried to make the github repository public, and even tried to re-create the domain but the error is still there.

I have read the whole Support Guide but I can’t seem to find the awsner to my problem.

I’ve seen the whole build script, and code itself but no error appears…
image
Hopefully someone manages to help me out with the issue!

@xcampi Can you click on the failed build to view the log, and then copy and paste the log details here?

1 Like

Hi @xcampi,

Thanks for reaching out!

I’m able to see the deploy log on site stormacademy. The deploy log shows the failure here:

4:06:23 AM: Failed to compile.
4:06:23 AM: 
4:06:23 AM: ./components/Footer.jsx
4:06:23 AM: Error:
4:06:23 AM:   x Unexpected token. Did you mean `{'>'}` or `>`?
4:06:23 AM:     ,-[62:1]
4:06:23 AM:  62 |       button.id = 'mainButton'
4:06:23 AM:  63 |
4:06:23 AM:  64 |       // Attach the "click" event to your button
4:06:23 AM:  65 |       button.addEventListener('click', () => {
4:06:23 AM:     :                                            ^
4:06:23 AM:  66 |         // When there is a "click"
4:06:23 AM:  67 |         // it shows an alert in the browser
4:06:23 AM:  68 |         alert('Oh, you clicked me!')
4:06:23 AM:     `----

Caused by:
    0: failed to process input file
    1: error was recoverable, but proceeding would result in wrong codegen
    2: Syntax Error

Import trace for requested module:
./components/Footer.jsx

./components/TopBar.jsx
Error: 
  x Expected '}', got ';'
    ,-[80:1]
 80 | 							<MenuList>
 81 | 								<MenuItem>HTML5
 82 | 									      function Redirect() {
 83 |             									location.assign("https://www.xcampi.netlify.io");
    :                                                                      ^
 84 | 										      </MenuItem>
 85 | 								<MenuItem>CSS3</MenuItem>
 86 | 								<MenuItem>JavaScript</MenuItem>
    `----
4:06:23 AM: Caused by:
4:06:23 AM:     0: failed to process input file
4:06:23 AM:     1: Syntax Error
4:06:23 AM: Import trace for requested module:
4:06:23 AM: ./components/TopBar.jsx
4:06:23 AM: > Build failed because of webpack errors

If you fix those errors do the builds still fail?