Skip to content
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

bootstrap.min.css.map Source Map Error #117

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

@Salt54J
Copy link

Salt54J commented Oct 6, 2018

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

@Vitaliy-1
Copy link
Collaborator

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

@arvindjugtwan00
Copy link

Screenshot (51)
how to solve below errors

@Tipsy-Spirit
Copy link

Screenshot (51)
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 !!

@htcrefactor
Copy link

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
pkp/healthSciences#117

Fixes: #117

Signed-off-by: David Galloway <dgallowa@redhat.com>
Asteritz added a commit to Asteritz/N2Lab_staging that referenced this issue Feb 21, 2024
Failed to load resource: the server responded with a status of 404 (Not Found) bootstrap.min.css.map
pkp/healthSciences#117 
delete “/*# sourceMappingURL=bootstrap.min.css.map */“
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants