hellotham / hello-astro

Hello Astro is a multi purpose Astro starter theme written in Typescript, TailwindCSS and AlpineJS. It supports Markdown and MDX based pages and blog posts.
https://hellotham.github.io/hello-astro
MIT License
158 stars 55 forks source link

"Loading module from “h/hello-astro/_astro/hoisted.d643c4ae.js” was blocked because of a disallowed MIME type (“text/html”)" #20

Open dandv opened 1 year ago

dandv commented 1 year ago

Got this on my first build. I suspect there's an nginx setting I need to tweak?

ChristineTham commented 1 year ago

Hello thanks for your feedback.

I can't seem to replicate this issue. Perhaps it is related to nginx as you suggest.

The other option is you can try upgrading to the latest version of packages:

pnpm up -L

and then rebuild and see what happens.

g-suraj commented 6 months ago

Did you ever manage to solve this? I'm running into something similar

g-suraj commented 6 months ago

I've managed to figure out what the issue is If you're using github pages. It won't serve assets from folders that begin with _. As such you'll have to override the config with another name.

HarryAdney commented 3 months ago

I had the same problem and the page rendered without any css at all. It turns out the links in the built html files just needed to be changed from ="/_astro to ="./_astro