Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery 2.0.3 Chrome Error Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension

I'm building out an HTML5 page. I'm using JQuery in it, and I'm getting the following two console errors.

Denying load of chrome-extension://kkelicaakdanhinjdeammmilcgefonfh/js/jquery.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension. localhost/:1

GET chrome-extension://invalid/  chrome-extension://invalid/:1

As far as I can tell everything is declared normally. Here's the top of my html page

<!DOCTYPE HTML>
<html>
    <head>
        <title>Page Title</title>
        <link href="css/main.css" type="text/css" rel="stylesheet" />
        <link href="css/archivo-narrow.css" type="text/css" rel="stylesheet" />
        <script type="text/javascript" src="scripts/jquery-2.0.3.min.js"></script>
    </head>

What's triggering this error?

like image 744
LoneWolfPR Avatar asked Aug 25 '13 15:08

LoneWolfPR


1 Answers

When you don't use jQuery from CDN (you download jQuery for yourself, then include it), it will failed to find its source map, to fix this error download jquery source map

You can find source map path in Resource Tab in Developer Tool, then open your jQuery file, you will find something like this

/*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-2.0.3.min.map
*/

Then go to http://code.jquery.com/sourceMappingURL, in this case = http://code.jquery.com/jquery-2.0.3.min.map, then save it in same directory as you save your jQuery file

like image 185
pveyes Avatar answered Sep 17 '22 20:09

pveyes