Render cant find my JS files I'm importing as scripts for my index.html

I import these

    <script src="mogorgo.js"></script>
    <script src="userInput.js"></script>
    <script src="client.js"></script>

in my index.html,
and when I inspect element I see the error is that the files aren’t found, I get this error:

“Refused to execute script from ‘’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.”

I also tried this and it didn’t work

    <script src="/opt/render/project/src/mogorgo.js"></script>
    <script src="/opt/render/project/src/userInput.js"></script>
    <script src="/opt/render/project/src/client.js"></script>

This is my repo

Thanks :slight_smile:

nvm i fixed it i had to serve them statically

Hi there,

Glad you were able to find a solution! Thanks for letting everyone know.


Render Support Engineer, MT (UTC-7)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.