Failed to load resource: net::ERR_FILE_NOT_FOUND loading json.js

后端 未结 5 586
既然无缘
既然无缘 2021-02-05 15:39

I am testing an html webpage and it is failing to load a local jquery.json-2.4.0.js. I am testing the html page locally from chrome. When the page loaded I get a net

相关标签:
5条回答
  • 2021-02-05 15:58

    Sometime when you downloading a project from other people, they might have some special customization. So, in my case I downloaded this project https://github.com/thecodercoder/fem-easybank

    And got these errors: Failed to load resource: net::ERR_FILE_NOT_FOUND That happed because the creator was using the /dist folder customization.

    https://youtu.be/aoQ6S1a32j8?t=309

    SOLUTION: you open Notepad++ press: Ctrl + F for search find all folders that starts with / as in the picture and replace with norma ones like: /dist/ to dist

    0 讨论(0)
  • 2021-02-05 16:00

    This error means that file was not found. Either path is wrong or file is not present where you want it to be. Try to access it by entering source address in your browser to check if it really is there. Browse the directories on server to ensure the path is correct. You may even copy and paste the relative path to be certain it is alright.

    0 讨论(0)
  • 2021-02-05 16:09

    Same thing happened to me. Eventually my solution was to navigate to the repository using terminal (on mac) and create a new js file with a slightly different name. It linked immediately so i copied contents of original file to new one. You also might want to lose the first / after src= and use "".

    0 讨论(0)
  • 2021-02-05 16:11

    I got the same error using:

    <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i,900,900i" type="text/css" media="all">
    

    But once I added https: in the beginning of the href the error disappeared.

    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i,900,900i" type="text/css" media="all">
    
    0 讨论(0)
  • 2021-02-05 16:13

    Remove the first / in the path. Also you don't need type="text/javascript" anymore in HTML5.

    0 讨论(0)
提交回复
热议问题