Tuesday, May 14, 2024
 Popular · Latest · Hot · Upcoming
133
rated 0 times [  137] [ 4]  / answers: 1 / hits: 5758  / 2 Years ago, sun, october 23, 2022, 12:00:00

I can't solve my script problem. I have tried deploying my application on render.com however i keep getting this error for all of my javascript files. the application runs perfectly when I use VS Codes live server but once deployed this error appears. I would really appreciate if someone was able to help me resolve this issue. I have also linked images.


JS:


<script type="module" src="/public/JS/setupCart.js"></script>
<script type="module" src="/public/JS/app.js"></script>

Error:


setupCart.js:1 : Failed to load resource: the server responded with a status of404 ()


app.js:1 : Failed to load resource: the server responded with a status of404 ()


Live link to application here: https://guided-fashion.onrender.com

Github repo: https://github.com/ddelimond/Guided-Fashion


enter
enter


More From » module

 Answers
1

In similar, kind of scenario I would suggest you to do



  1. Viewpage source (ctrl+U) while on your local where it is working fine.

  2. Ctrl + click the app.js and setupcart.js link on your website and look at t
    their address on the address bar of your browser.

  3. Do the similar thing on your hosted application and compare the both
    addresses and see if the folder exists on the both cases.


[#20] Friday, July 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tatyanna

Total Points: 552
Total Questions: 96
Total Answers: 96

Location: Cook Islands
Member since Thu, May 21, 2020
4 Years ago
tatyanna questions
Tue, Jul 14, 20, 00:00, 4 Years ago
Sun, Nov 17, 19, 00:00, 5 Years ago
Tue, Jan 15, 19, 00:00, 5 Years ago
;