#MIME , Error

1 messages · Page 1 of 1 (latest)

coarse coral
#

The script from “http://localhost:44/ins.js” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type.

I tried an external JS file in Bun project, and stuck on this issue.

Regards.

coarse coral
#

i had attempted this, and its shows the proceeding error and nothing works in Browser's Console. Contrary to this its works in Bun's Console fine.

tacit light
# coarse coral

you server has no handle for /ins.js, you're getting the 'Not Found' 404 page

#

this will only run that file on your server

coarse coral
#

I think ,there is no need if it has already been added in HTML file.

tacit light
#

i told you what your problem is

#

you check if it's either of these, then send index.html

#

but your ins.js will fall on your 404 page

#

that's text