Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

284
Views
How to remove Source Map error only on remote server

I have developed a website with bootstrap and leaflet on a local computer. I added the source map files and the compiled css and js files (but not the minified versions). I am not getting any errors when using developer tools locally. However, when I FTP the files to the server, which is Unix running Apache, I now get a parse error when opening the developer tools:

DevTools failed to load source map: Could not parse content for https://{file location}leaflet.js.map: Unexpected token < in JSON at position 0

This error happens for the leaflet map file and also the map files for bootstrap.js and bootstrap.css. Note that the leaflet.css file is in the root since it requires its own subfolder for images. It is not generating an error.

I do realize I can disable the use of map files but I don't want to. Also, maybe I could just put everything in the website root but I don't want to do that either. Anybody know what the issue is so I can implement a solution that preserves the file structure and allow me to debug?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!