Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

286
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda