Getting Blank Page On Live Site - Working in Preview In Bolt.New

PLEASE help us help you by writing a good post!

Live Domain: https://scaffoldhiresydney.com/
https://astounding-toffee-3558ac.netlify.app/

So I can see the preview working perfectly within Bolt.new:

Link to Bolt.new Project: SEO-Optimized Scaffold Hire Sydney Website

I download the project, extract the file and upload the project folder directly in deploy.

But when I look on the live site, its just a blank screen and I have no idea why. I have wasted 1m tokens trying to solve this and its quite frustrating.

When I view page source on the live site, this is the error I get:

main.tsx:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.

If anyone can help me here it would be really, really appreciated. Thanks in advance and let me know if there is anything else I can provide. I tried to provide as much info as possible :slight_smile:

@alanp97 Did you read any of the Netlify documentation? Did you set the Build configuration?

See:
https://docs.netlify.com/configure-builds/overview/

You appear to be deploying source code, not build output:

image

I just have manual deploys set up as it was too confusing for me with github.

Can I fix this with manual deploys?

If you can break it down another level it would be appreciated please. Im not exactly sure what to do from your above response.

@alanp97 The answer for “what to do” would be “ensure the correct files are deployed”.

Precisely how to do that depends on which deployment method is being used.

When you say ‘manual deploys’ do you mean Drag and drop:
https://docs.netlify.com/site-deploys/create-deploys/#drag-and-drop

If so, then your issue is that you’re “dragging & dropping” your source files.

The Drag & drop system does not run a build, it just deploys the files as provided to it.

So you will need to run your build locally, and then Drag and drop the build output.

1 Like

You are a legend thank you. Appreciate your patience with me!