# V9: Bootstrap source map error on all front end pages

**URL:** <https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587>\
**Category:** Using Concrete / Help\
**Created:** [November 14, 2021, 1:27pm UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587 "2021-11-14T13:27:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![linuxoid](https://forums.concretecms.org/user_avatar/forums.concretecms.org/linuxoid/32/5311_2.png) [@linuxoid](https://forums.concretecms.org/u/linuxoid)\
**Post date:** [November 14, 2021, 1:27pm UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/1 "2021-11-14T13:27:08Z")

</div>

I get that error in the browser development console:

Source map error: Error: request failed with status 404 on every front end page.

Do you know what may be causing that? I can see in the page source the Bootstrap is loaded. All site functionality is working fine though.

![Screenshot_20211115_002400](https://forums.concretecms.org/uploads/default/original/1X/b10eb907c387dc0c040422230fb3cf7309780bdb.png)

I don’t get that on the Dashboard.

---

<div class="post-metadata">

**Author:** ![ConcreteOwl](https://forums.concretecms.org/user_avatar/forums.concretecms.org/concreteowl/32/6304_2.png) [@ConcreteOwl](https://forums.concretecms.org/u/ConcreteOwl)\
**Post date:** [November 14, 2021, 6:15pm UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/2 "2021-11-14T18:15:58Z")

</div>

On line 7 of concrete/js/bootstrap.js you will see  
//# sourceMappingURL=bootstrap.bundle.min.js.map  
Just comment it out like this  
/\* //# sourceMappingURL=bootstrap.bundle.min.js.map \*/

---

<div class="post-metadata">

**Author:** ![linuxoid](https://forums.concretecms.org/user_avatar/forums.concretecms.org/linuxoid/32/5311_2.png) [@linuxoid](https://forums.concretecms.org/u/linuxoid)\
**Post date:** [November 15, 2021, 1:43am UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/3 "2021-11-15T01:43:12Z")

</div>

> [@ConcreteOwl](#):
>
> Just comment it out like this  
> /\* //# sourceMappingURL=bootstrap.bundle.min.js.map \*/

No, that didn’t help, still get the error. Although deleting that line removed the error. But is that the right thing to do?

---

<div class="post-metadata">

**Author:** ![ConcreteOwl](https://forums.concretecms.org/user_avatar/forums.concretecms.org/concreteowl/32/6304_2.png) [@ConcreteOwl](https://forums.concretecms.org/u/ConcreteOwl)\
**Post date:** [November 15, 2021, 6:45am UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/4 "2021-11-15T06:45:05Z")

</div>

Since that line is throwing a 404 error then it is useless anyway (unable to be loaded)  
So in this case I would say it is not “the right thing to do” but a “lesser of the two evils”.  
You could track down the correct map file, load it to the server and adjust the path accordingly if you have the desire to.

---

<div class="post-metadata">

**Author:** ![ConcreteOwl](https://forums.concretecms.org/user_avatar/forums.concretecms.org/concreteowl/32/6304_2.png) [@ConcreteOwl](https://forums.concretecms.org/u/ConcreteOwl)\
**Post date:** [November 15, 2021, 7:24am UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/5 "2021-11-15T07:24:56Z")

</div>

If you really want to fix this the “right way” here is what I did.  
Go to [Download · Bootstrap v5.1](https://getbootstrap.com/docs/5.1/getting-started/download/) and download the bootstrap-513-dist.zip file, extract it to a temp place on your hard drive, copy the map file from the ‘js’ folder and place it in your concrete/js folder (same place as the bootstrap.js file), restore the line 7 previously deleted and that should do it.

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [November 15, 2021, 9:26am UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/6 "2021-11-15T09:26:56Z")

</div>

@linuxoid - This could be a bug in the core bedrock build. If you want to open an issue, the repository is [https://github.com/concrete5/bedrock](https://github.com/concrete5/bedrock)

---

<div class="post-metadata">

**Author:** ![linuxoid](https://forums.concretecms.org/user_avatar/forums.concretecms.org/linuxoid/32/5311_2.png) [@linuxoid](https://forums.concretecms.org/u/linuxoid)\
**Post date:** [November 15, 2021, 9:42am UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/7 "2021-11-15T09:42:44Z")

</div>

> <https://github.com/concrete5/bedrock/issues/185>
>
> I get that error in the browser development console:
> 
> Source map error: Error:… request failed with status 404 on every front end page.
> 
> Do you know what may be causing that? I can see in the page source the Bootstrap is loaded. All site functionality is working fine though.
> 
> !\[Screenshot\_20211115\_002400\](https://user-images.githubusercontent.com/239979/141758799-e5afa090-1454-41b7-8356-57e3637d530d.png)
> 
> I don’t get that on the Dashboard.

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [November 15, 2021, 10:07am UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/8 "2021-11-15T10:07:20Z")

</div>

The browser only attempts to load source map files when the dev console is open, so its not an issue that affects visitors, just developers.

---

<div class="post-metadata">

**Author:** ![linuxoid](https://forums.concretecms.org/user_avatar/forums.concretecms.org/linuxoid/32/5311_2.png) [@linuxoid](https://forums.concretecms.org/u/linuxoid)\
**Post date:** [November 15, 2021, 10:47am UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/9 "2021-11-15T10:47:19Z")

</div>

Could you tell me that before I made the bug report? 😅 Should I delete it?

---

<div class="post-metadata">

**Author:** ![JohntheFish](https://forums.concretecms.org/user_avatar/forums.concretecms.org/johnthefish/32/3767_2.png) [@JohntheFish](https://forums.concretecms.org/u/JohntheFish)\
**Post date:** [November 15, 2021, 11:07am UTC](https://forums.concretecms.org/t/v9-bootstrap-source-map-error-on-all-front-end-pages/1587/10 "2021-11-15T11:07:07Z")

</div>

I think it is still worth a bug report. Developers need to debug scripts.
