I’m recently playing with bootsrap3. I compiled it from sources and included distr js and css to my project. The thing is, I see in GH dev tools, that it’s trying to get .map.css file. Why does it want to do so? How to disable it? Do I need to disable it? To not to have an error mark in dev tools, I added that map file, after which all styles are displayed as they defined in less files, which doesn’t help me much.
asked Feb 14, 2014 at 7:37
2
Delete the line /*# sourceMappingURL=bootstrap.css.map */ from bootstrap.css
Mohit Jain
30.1k8 gold badges74 silver badges98 bronze badges
answered May 28, 2014 at 10:43
user2779632user2779632
2,5771 gold badge11 silver badges3 bronze badges
5
.map files allow a browser to download a full version of the minified JS. It is really for debugging purposes.
In effect, the .map missing isn’t a problem. You only know it is missing, as the browser has had its Developer tools opened, detected a minified file and is just informing you that the JS debugging won’t be as good as it could be.
This is why libraries like jQuery have the full, the minified and the map file too.
See this article for a full explanation of .map files:
answered Feb 14, 2014 at 7:43
8
This only happens when you use the dev-tools, and won’t happen for normal users accessing the production server.
In any case, I found it useful to simply disable this behavior in the dev-tools: open the settings and uncheck the «Enable source maps» option.
There will no longer be an attempt to access map files.
answered Mar 14, 2018 at 9:05
![]()
ShovaltShovalt
6,0372 gold badges32 silver badges50 bronze badges
4
Remove the line /*# sourceMappingURL=bootstrap.css.map */ in bootstrap.css
If the error persists, clean the cache of the browser (CTRL + F5).
Vincent
4,3131 gold badge37 silver badges37 bronze badges
answered Mar 16, 2016 at 14:55
3
Delete the line "/*# sourceMappingURL=bootstrap.min.css.map */ " in following files:
- css/bootstrap.min.css
- css/bootstrap.css
To fetch the file path in Linux use the command find / -name "*bootstrap*"
![]()
SwissCodeMen
3,9114 gold badges18 silver badges28 bronze badges
answered Jul 31, 2018 at 5:06
2
From bootstrap.css remove last line /*# sourceMappingURL=bootstrap-theme.css.map */
![]()
SwissCodeMen
3,9114 gold badges18 silver badges28 bronze badges
answered Nov 5, 2014 at 10:05
![]()
If you don’t have the correct .map file and you don’t want to edit lines in bootstrap.css you can create a dummy .map file.
In my case I was seeing the error:
GET /bootstrap.css.map not found.
So I created an empty bootstrap.css.map in the /public directory and the error stopped.
answered Nov 19, 2014 at 15:45
Julian MannJulian Mann
5,9875 gold badges31 silver badges43 bronze badges
1
Delete
/*# sourceMappingURL=bootstrap.min.css.map */
in css/bootstrap.min.css
and delete
/*# sourceMappingURL=bootstrap.css.map */
in css/bootstrap.css
answered Nov 12, 2017 at 17:12
![]()
Delete the last line in bootstrap.css
folllowing line
/*# sourceMappingURL=bootstrap.css.map */
![]()
SwissCodeMen
3,9114 gold badges18 silver badges28 bronze badges
answered Apr 16, 2015 at 4:54
1
Follow that tutorial:
Disable JavaScript With Chrome DevTools
Summary:
- Open your code Inspector (right click)
- Press Control+Shift+P and search «Disable JavaScript source maps»
- Do same for «Disable CSS source maps»
- Press control+F5 to clear cache and reload page.
answered Feb 4, 2021 at 11:46
Navas EmaNavas Ema
1461 silver badge4 bronze badges
I had also warnings in Google Dev-Tools and I added only bootstrap.min.css.map file in the same folder, where bootstrap.min.css is.
I have now no warnings more and You can find more Explanation here: https://github.com/twbs/bootstrap#whats-included
I hope, I answered your Question.
answered Mar 2, 2017 at 18:58
![]()
SVANSKISVANSKI
4263 silver badges13 bronze badges
For me, created an empty bootstrap.css.map together with bootstrap.css and the error stopped.
answered Apr 21, 2017 at 21:50
0
Deleting this line fixes it, but the problem is the boostrap files are in bower_components and not checked into source control.
So, every developer on the team will get the css file with the map reference when they pull the repo and do bower install (which is part of using a new repo).
The file should not have the reference to a map that is not there.
answered Dec 4, 2017 at 16:25
SteveSteve
14k29 gold badges121 silver badges223 bronze badges
Okay Recently I faced this problem I have very simple solution for solve this Issue , follow these steps:
go to these directories src-> app-> index.html open the index.html and find
<base href="your app name ">change this to <base href="/">
answered Nov 3, 2017 at 6:25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
Salt54J opened this issue
Oct 6, 2018
· 4 comments
Closed
bootstrap.min.css.map Source Map Error
#117
Salt54J opened this issue
Oct 6, 2018
· 4 comments
Comments
Hi, I installed this plugin and it seems to be working OK (the theme looks great!), but I noticed on the console that I am getting a source map error when I load the journal homepage.
Source map error: request failed with status 404
Resource URL: https://domainname.com/plugins/themes/healthSciences/libs/bootstrap.min.css
Source Map URL: bootstrap.min.css.map
OJS: 3.1.1.4
Health Sciences Theme: 1.0.2
Hosting: Shared hosting, OJS installed via Softaculous
Permissions: All the files in the theme are permissioned 0644 (all can read, user can write) and folders are 0755 (all can read, user can write, all can execute)
Browser: Firefox 62.0.3 on Windows 10 Pro
Thanks for all of your hard work
Hi @Salt54J
Thanks on this one.
This error means that browser can’t find the file pointed here: https://github.com/pkp/healthSciences/blob/master/libs/bootstrap.min.css#L7
Source map files, like bootstrap.min.css.map, are generated automatically during files minification/compiling process. They actually are not needed for the production, but at the same time occupy 3 times more disk space than ones which they are mapping. That’s why I don’t include them in the release.
If you want just to remove that message, you can either remove comments like /*# sourceMappingURL=bootstrap.min.css.map */ in bootstrap.min.css, bootstrap.min.js and popper.min.js or download source map files from a Bootstrap 4.1.3 release and put them inside libs directory
Mykola-Veryha and sdsaati reacted with laugh emoji

how to solve below errors
how to solve below errors
Hi arvindjugtwan00,
Even i got the same error as you have got but it was resolved by deleting few line so you just have to delete
the line » /*# sourceMappingURL=bootstrap.min.css.map */ » in folder ‘styles/bootstrap4/bootstrap.min.css.map’
and the line » //# sourceMappingURL=bootstrap.min.js.map./ » in folder ‘styles/bootstrap4/bootstrap.min.css.js’
and the line » //# sourceMappingURL=popper.js.map » in folder ‘styles/bootstrap4/popper.js’
that all you have to do !!
I was just curious… The lines instructed to delete/comment are comments but why does these lines affect the behavior? They’re comments which should have no effect, isn’t it?
djgalloway
pushed a commit
to ceph/shaman
that referenced
this issue
Mar 16, 2021
This was referenced
Jun 16, 2021
HelloMark,
![]()
Сообщение от HelloMark

Я задал конкретный вопрос
вам дали конкретный ответ
![]()
Сообщение от HelloMark

Зачем вы мне кидаете ссылку на документацию?
потому что там находится ответ
![]()
Сообщение от HelloMark

нужно ли убирать это из конфига
![]()
Сообщение от itisntsoHard

если вам не нравится данная ошибка .то можно удалить это в bootstrap.css:
/*# sourceMappingURL=bootstrap.css.map */
![]()
Сообщение от HelloMark

что значит нормально?
такой, как другие; обычный, соответствующий норме
![]()
Сообщение от HelloMark

это правда?
да
![]()
Сообщение от HelloMark

Стоит ли из конфига удалить эту строчку, мешает ли она как-то?
на работоспособность не влияет
HelloMark, а вообще, постарайтесь быть более дружественным и менее критичным
тут вам помогают понять
а если вам нужно что бы просто «все сделали хорошо», без всяких усилий с вашей стороны, идите в раздел фриланс
я глубочайшие извиняюсь, но тут вам никто ничем не обязан, и itisntsoHard помог вам исключительно добровольно и бескорыстно
если Вас не устраивает его помощь, снова извините, но вы не его работодатель что бы что-либо требовать от него и писать в такой манере
When adding a bootstrap javascript library to my webpages, Chrome warned as DevTools failed to load source map. Below is the complete error message:
DevTools failed to load source map: Could not load content for http://192.168.10.12/admin/css/bootstrap.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
As a developer, I expect console output to only contain messages relevant to my application development.
It was frustrating to see the above error because I had no reference to the file bootstrap.min.js.map in my webpage which was indicated in the warning message. I searched the whole website’s root directory for the file and only found bootstrap.min.js and not bootstrap.min.js.map file. Surprisingly found a reference in the file bootstrap.min.js for bootstrap.min.js.map as below:
//# sourceMappingURL=bootstrap.min.js.map
As it is commented didn’t pay much attention to it!
What is a SourceMap?
The Javascript sources are often combined and minified to optimize the website to load faster and reduce bandwidth usage. Minification and combining dramatically improve site speed and accessibility, directly translating into a better user experience. Such scripts are difficult to debug than the original source code. A source map is a file that maps from the transformed source to the original source, enabling the browser to reconstruct the original source and present the reconstructed original to the debugger. To enable the debugger to work with a source map, a source map file shall be generated and included in the transformed file as a comment that points to the source map file as below:
//# sourceMappingURL=http://example.com/path/to/your/sourcemap.map
Solution:
Simply remove the below line from the file or based on the bootstrap version, you can download the corresponding source map file and place it in the appropriate directory where bootstrap.min.js is placed.
//# sourceMappingURL=bootstrap.min.js.map
Similarly, if you found a warning corresponding to a missing source map file, either go to the corresponding file and remove the sourceMappingURL line or download the corresponding source map file and place it in the appropriate directory.

Ramya Santhosh
is a Web Designer and content creator. A freelance writer on latest trends in technology, gadget reviews, How to’s and many more.
-
#2
Обнаружил вот такой список предупреждений в браузере. Что это такое и как можно исправить?
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/productcomments/productcomments.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/blockuserinfo/blockuserinfo.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/scenes.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/autoload/uniform.default.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/blockcontact/blockcontact.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/favoriteproducts/favoriteproducts.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/blocknewsletter/blocknewsletter.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/blocksearch/blocksearch.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/blockwishlist/blockwishlist.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/homefeatured/homefeatured.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/category.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/blockmyaccountfooter/blockmyaccount.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load source map: Could not load content for https://www.sayt.ru/themes/big-shop/css/modules/blockbestsellers/blockbestsellers.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
исправляется если удалить в bootstrap.min.css следующую строчку:
Код:
/*# sourceMappingURL=bootstrap.min.css.map */
-
#3
исправляется если удалить в bootstrap.min.css следующую строчку:
Код:
/*# sourceMappingURL=bootstrap.min.css.map */
а где этот файл находится? Нашел файл с таким названием bootstrap.min.css в директории: админка/filemanager/css/
НО там и близко такого нет текста.
Там содержание примерно такое:
/*!
* Bootstrap v2.3.1
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;line-height:0;content:»»}.clearfix:after{clear:both}.hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none}html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}a:hover,a:active{outline:0}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{width:auto9;height:auto;max-width:100%;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}#map_canvas img,.google-maps img{max-width:none}button,input,select,textarea{margin:0;font-size:100%;vertical-align:middle}button,input{*overflow:visible;line-height:normal}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}button,html input[type=»button»],input[type=»reset»],input[type=»submit»]{cursor:pointer;-webkit-appearance:button}label,select,button,input[type=»button»],input[type=»reset»],input[type=»submit»],input[type=»radio»],input[type=»checkbox»]{cursor:pointer}input[type=»search»]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=»search»]::-webkit-search-decoration,input[type=»search»]::-webkit-search-cancel-button{-webkit-appearance:none}textarea{overflow:auto;vertical-align:top}@media
Последнее редактирование: 12.02.2022
-
#4
Обнаружил вот такой список предупреждений в браузере. Что это такое и как можно исправить?
Такого рода предупреждения могут быть проигнорированы.
Либо в самом браузере выключить эти предупреждения.
-
#7
Такого рода предупреждения могут быть проигнорированы.
Либо в самом браузере выключить эти предупреждения.
хотелось бы в браузере ничего не отключать, а просто исправить
-
#8
Открываем файл https://www.sayt.ru/themes/big-shop/css/modules/productcomments/productcomments.css
в самом конце находим /*# sourceMappingURL=productcomments.css.map */
и удаляем
В указанном месте нет такого файла
но он есть вот здесь //themes/big-shop/css/modules/productcomments/
и в нем действительно есть закомментированная строка /*# sourceMappingURL=productcomments.css.map */
её удаление ничего не дало — по прежнему все так же — кеш чистил и страницу перегружар ctrl + F5
да и я думаю ничего бы и не дало — она же закоментирована??
или это нужно в каждом модуле исправить по списку?
-
#9
А через консоль настройки ксс? Галку на джавик
-
#10
Благодарю всех за помощь!
Решение оказывается «лобовое» — во всех этих файлах ФИЗИЧЕСКИ удалить строку /*# sourceMappingURL=productcomments.css.map */
я то думал она закомментирована и не должна срабатывать — а оказывается это не так!
пошел удалять
))
Недавно играю с bootsrap3. Я скомпилировал его из исходников и включил в свой проект distr js и css. Дело в том, что я вижу в инструментах GH dev, что он пытается получить файл .map.css. Почему он так хочет? Как это отключить? Мне нужно отключить его? Чтобы не было отметки об ошибке в инструментах разработчика, я добавил этот файл карты, после чего все стили отображаются так, как они определены, в меньшем количестве файлов, что мне не очень помогает.
Ответы:
Удалить строку /*# sourceMappingURL=bootstrap.css.map */изbootstrap.css
Файлы .map позволяют браузеру загружать полную версию миниатюрного JS. Это действительно для целей отладки.
По сути, отсутствие файла .map не является проблемой. Вы только знаете, что он отсутствует, поскольку в браузере были открыты инструменты разработчика, обнаружен миниатюрный файл и просто информируется о том, что отладка JS не будет такой хорошей, как могла бы быть.
Вот почему библиотеки, такие как jQuery, также имеют полный, минимизированный и файл карты.
См. Эту статью для полного объяснения файлов .map :
Удалите строку /*# sourceMappingURL=bootstrap.css.map */вbootstrap.css
Если ошибка повторится, очистите кеш браузера (CTRL + F5).
Удалите строку "/*# sourceMappingURL=bootstrap.min.css.map */ "в следующих файлах.
- CSS / bootstrap.min.css
- CSS / bootstrap.css
Чтобы получить путь к файлу в Linux, используйте команду find / -name "*bootstrap*"
Это происходит только тогда, когда вы используете инструменты разработчика, и не произойдет для обычных пользователей, обращающихся к производственному серверу.
В любом случае, я счел полезным просто отключить это поведение в dev-tools : откройте настройки и снимите флажок «Включить исходные карты».
Попытки получить доступ к файлам карт больше не будут.
Если у вас нет правильного файла .map и вы не хотите редактировать строки в bootstrap.css, вы можете создать фиктивный файл .map.
В моем случае я увидел ошибку:
GET /bootstrap.css.map not found.
Поэтому я создал пустой файл bootstrap.css.map в каталоге / public, и ошибка прекратилась.
Удалить
/ * # sourceMappingURL = bootstrap.min.css.map * / в css / bootstrap.min.css
и удалите
/ * # sourceMappingURL = bootstrap.css.map * / в css / bootstrap.css
Из bootstrap.css удалите удалите последнюю строку / * # sourceMappingURL = bootstrap-theme.css.map * /
У меня также были предупреждения в Google Dev-Tools, и я добавил только файл bootstrap.min.css.map в ту же папку, где находится bootstrap.min.css.
У меня больше нет предупреждений, и вы можете найти больше объяснений здесь: https://github.com/twbs/bootstrap#whats-included
Надеюсь, я ответил на ваш вопрос.
Для меня создал пустой bootstrap.css.map вместе с bootstrap.css, и ошибка прекратилась.
Удаление этой строки исправляет ее, но проблема в том, что файлы boostrap находятся в системе контроля версий, bower_componentsа не проверены.
Итак, каждый разработчик в команде получит файл css со ссылкой на карту, когда они извлекут репо и сделают это bower install(что является частью использования нового репо).
В файле не должно быть ссылки на карту, которой нет.
Хорошо Недавно я столкнулся с этой проблемой. У меня есть очень простое решение для решения этой проблемы, выполните следующие действия:
перейдите в эти каталоги src-> app-> index.html, откройте index.html и найдите,
<base href="your app name ">измените его на<base href="https://stackoverflow.com/">
Удалите последнюю строку в bootstrap.css
после lin / * # sourceMappingURL = bootstrap.css.map * /

- Remove From My Forums
-
Question
-
User-1548796982 posted
hi
i get this message while load page and page load slowly
Source map error: request failed with status 404 Resource URL: …/Content/bootstrap.css Source Map URL: bootstrap.css.map
why?
All replies
-
User-2054057000 posted
It looks like you have not correctly linked the bootstrap.css in your page head.
Add the following css and js of bootstrap from cdn:
<!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> <!-- jQuery library --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <!-- Latest compiled JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
-
User-474980206 posted
You can ignore this error. When the browser developer tools are open, for every JavaScript and css file loaded, it also checks for a .map file which contains the source and line number mapping. This is only used to debug and is optional. -
User283571144 posted
Hi tadbirgaran,
i get this message while load page and page load slowly
Source map error: request failed with status 404 Resource URL: …/Content/bootstrap.css Source Map URL: bootstrap.css.map
As far as I know, this error means that browser can’t find the file pointed here:
/*# sourceMappingURL=bootstrap.min.css.map */
Link:https://github.com/pkp/healthSciences/blob/master/libs/bootstrap.min.css#L7
Source map files, like bootstrap.min.css.map, are generated automatically during files minification/compiling process. They actually are not needed for the production, but at the same time occupy 3 times more disk space than ones which they are mapping.
That’s why I don’t include them in the release.If you want just to remove that message, you can either remove comments like /*# sourceMappingURL=bootstrap.min.css.map */ in bootstrap.min.css, bootstrap.min.js and or download source map files from a Bootstrap and put them inside libs directory.
Besides, there are multiple reason cause your page load slowly.
I suggest you could try to use F12 development tool to troubleshoot which part cause your page loading slowly.
More details, you could refer to below article:
https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/
Best Regards,
Brando
0 Пользователей и 1 Гость просматривают эту тему.
- 5 Ответов
- 512 Просмотров

Всем привет.
Шаблон сверстан в bootstrap 4 пытаюсь натянуть на Joomla 3 .
Вот вчем проблема вылезли в консоле ошибки :
1)Uncaught ReferenceError: jQuery is not defined
2)Uncaught ReferenceError: jQuery is not defined
И возьмись не откуда появились блоки при выводе контента блоки которые перекрывают верстку в контенте
<div class="item-page" itemscope itemtype="https://schema.org/Article">
<meta itemprop="inLanguage" content="ru-RU" />
<div itemprop="articleBody">
код index.php
начало
defined('_JEXEC') or die;
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" > <head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<!--[if lt IE 9]>
<script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<jdoc:include type="head"/>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/bootstrap.min.css" >
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/slick.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/fridges.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/fridges-media.css" type="text/css" />
<link href="templates/<?php echo $this->template ?>/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery-3.5.0.min.js"></script>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/slick.min.js"></script>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/fridges.js"></script>
<script src="https://use.fontawesome.com/8c15de8939.js"></script>
</head>
Конец
<?php
JHtml::_('jquery.framework');
// Remove Scripts
$doc = JFactory::getDocument();
unset($doc->_scripts[JURI::root(true). '/media/jui/js/jquery.min.js']);
unset($doc->_scripts[JURI::root(true). '/media/jui/js/jquery-noconflict.js']);
unset($doc->_scripts[JURI::root(true). '/media/jui/js/bootstrap.min.js']);?>
Как это все вылечить.
Спасибо.
Просмотры и не одного ответа.
Н да судьба сообщества Joomla идет к законченной судьбе сообщества Drupal.
Видимо зря пытаюсь перелесть с CMS написанной в общаге на коленках на CMS Joomla.
Uncaught ReferenceError: jQuery is not defined
В каком файле? На какой строке? Судя по index.php, bootstrap*.js вообще не загружается, поэтому эта ошибка кажется не связанной с bootstrap.
Смотрите в браузере в консоли разработчика, все ли js файлы загрузились, где возникает ошибка и т.д. То же касается и стилей. Тут телепатов нет, и по одному лишь index.php диагноз не поставишь.
А по блокам тянет микроразметку
Не могу понять что ему надо.
Все ошибки устранил вылезла предупреждение.
Ошибка карты кода: Error: request failed with status 404
URL ресурса: localhost/templates/fridges/css/bootstrap.min.css
URL карты кода: bootstrap.min.css.map
Не могу понять что ему надо.
Либо положить bootstrap.min.css.map рядом с bootstrap.min.css (в дистрибутиве бутстрапа оно есть). Либо забить на это предупреждение. Карту дергает только отладчик в попытке показать вам место в исходном файле стиля (до компиляции) активного правила.
11 ответов
Удалите строку /*# sourceMappingURL=bootstrap.css.map */ из bootstrap.css
user2779632
28 май 2014, в 12:00
Поделиться
.map файлы позволяют браузеру загружать полную версию мини-JS. Это действительно для целей отладки.
По сути, недостаток .map не является проблемой. Вы только знаете, что этого не хватает, поскольку браузер открыл свои инструменты для разработчиков, обнаружил мини файл и просто информирует вас о том, что отладка JS не будет такой хорошей, как может быть.
Вот почему библиотеки, такие как jQuery, имеют полный, мини файл и файл карты.
См. статью для полного объяснения файлов .map:
Dominic Zukiewicz
14 фев. 2014, в 08:04
Поделиться
Удалите строку /*# sourceMappingURL=bootstrap.css.map */ в bootstrap.css
Если ошибка сохраняется, очистите кеш браузера (CTRL + F5).
Nicolás Jofré
16 март 2016, в 16:51
Поделиться
Если у вас нет правильного файла .map и вы не хотите редактировать строки в bootstrap.css, вы можете создать файл-макет .map.
В моем случае я увидел ошибку:
GET /bootstrap.css.map not found.
Итак, я создал пустую bootstrap.css.map в каталоге /public и ошибка была остановлена.
Julian Mann
19 нояб. 2014, в 17:09
Поделиться
У меня также были предупреждения в Google Dev-Tools, и я добавил только файл bootstrap.min.css.map в ту же папку, где bootstrap.min.css.
У меня теперь нет предупреждений больше, и вы можете найти больше Объяснение здесь: https://github.com/twbs/bootstrap#whats-included
Надеюсь, я ответил на ваш вопрос.
SVANSKI
02 март 2017, в 19:59
Поделиться
Удаление этой строки исправляет ее, но проблема в том, что файлы boostrap находятся в bower_components и не проверены в исходном элементе управления.
Таким образом, каждый разработчик в команде получит файл css с ссылкой на карту, когда они вытащит репо и сделает bower install (который является частью использования нового репо).
В файле не должно быть ссылки на карту, которая там отсутствует.
Steve
04 дек. 2017, в 16:46
Поделиться
Удалить
/* # sourceMappingURL = bootstrap.min.css.map */
в css/bootstrap.min.css
и удалите
/* # sourceMappingURL = bootstrap.css.map */
в css/bootstrap.css
Sergio Perez
12 нояб. 2017, в 18:53
Поделиться
Хорошо. Недавно я выбрал эту проблему. У меня очень простое решение для решения этой проблемы, выполните следующие действия:
перейдите в эти каталоги src- > app- > index.html, откройте index.html и найдите
<base href="your app name "> измените это на <base href="/">
Sachin from Pune
03 нояб. 2017, в 06:28
Поделиться
Для меня создан пустой bootstrap.css.map вместе с bootstrap.css и ошибка остановлена.
fw0213
21 апр. 2017, в 22:29
Поделиться
Удалить последнюю строку в bootstrap.css
folllowing lin
/* # sourceMappingURL = bootstrap.css.map */
user1498608
16 апр. 2015, в 06:08
Поделиться
Из bootstrap.css удалить удалить последнюю строку /* # sourceMappingURL = bootstrap-theme.css.map */
Saineshwar
05 нояб. 2014, в 10:38
Поделиться
Ещё вопросы
- 1Я хочу, чтобы мой код не извлекал ссылки с 0 сидерами, используя python
- 1Как использовать функцию для импорта переменной в Python?
- 0LibCurl: изменение CWD
- 0M-to-M отношение MySQL запрос
- 1SQLite: вопрос сравнения «IN»
- 0Как выполнить этот сложный запрос через Laravel Eloquent?
- 1Служба проверки активности Android для запуска другого действия
- 0Как я могу перетаскивать изображения / текст на холст и сохранять холст как HTML?
- 0Как можно изменить отключенный стиль для поля выбора с JavaScript
- 0математическая операция между 2 uint32_t, возвращающая uint64_t
- 1Удалить начальные нули при чтении файла CSV
- 1Как получить адреса, если мы указываем широту и долготу с помощью API определения местоположения в Android
- 1Ploly Geoscatter с агрегацией: показать агрегацию при наведении
- 1React-Native Firebase, колонка обновления
- 1Поддерживают ли приложения магазина Windows настраиваемые жесты?
- 1Присоединиться к таблице в проблеме отображения HNibernate
- 1Рассчитать Tf-Idf баллы в пандах?
- 1Шаблон проектирования, обработка сообщений на основе состояния
- 1Обработка ошибок в функции AWS Lambda с помощью API Gateway
- 0Создание объектов во время выполнения
- 1WPF — Отмена выбора вкладки в TabControl вызывает проблемы
- 1Pandas group-by / pivot данные, в то время как записи одного столбца становятся новыми метками
- 1Cupcake (API3) дружественный способ приостановить / остановить звуковые петли в SoundPool? Есть идеи?
- 1Restful API + специальные символы
- 0HTML / CSS текстовый абзац между изображением и формой
- 0Валидация с использованием AngularJS
- 0DOM не обновляется при изменении значения переменной контроллера
- 0Кэширование данных, полученных из API — php
- 0Вложенные флексбоксы не растут одинаково
- 0Перенос значения гиперссылки со страницы jsp на сервлет
- 1Глоб не печатает результаты
- 1Как вызвать метод после `computed` в Emberjs
- 0Вид не обновляется после обновления области
- 0Как создать фильтр для каждой вкладки?
- 0Как сделать MySQL разделение таблицы в рельсах?
- 1Учитывая значение, найти процентиль% с Numpy
- 0Кендо мобильный Scrollview. Сбросить вертикальную полосу прокрутки
- 0Неизвестное использование операции с указателем
- 0Попытка инициализировать карту, которая принимает объект в качестве значения в конструкторе
- 0Получить цену и добавить в корзину кнопку Magento
- 1Как очистить старые вкладки и добавить новую вкладку на вкладке
- 1Отключить текст под изображением штрих-кода в Code39Bean
- 1Исключение в основном потоке при выполнении файла java jar
- 1Разделить данные из исходного столбца на два новых столбца на основе совпадения строк в Python?
- 1Файл json не создается с помощью Python Scrapy Spider
- 0Временные массивы устройств CUDA
- 0Показать разрывы строк в содержимом таблицы
- 0Как интегрировать AngularJS с Expressjs & NodeJS? Как заменить Джейд на угловой?
- 1Как создать шифр подстановки ключевых слов