question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the map file for?

See original GitHub issue

I followed some instructions to add Mermaid to a company-private blog by adding mermaid.min.js to the blog repo and a <script> element to load it. It works great with no issues I can see except for this error in my browser:

[Error] Failed to load resource: the server responded with a status of 404 () (mermaid.min.js.map, line 0)
https://xxxxxx.pages.github.io/assets/js/mermaid.min.js.map

It makes sense it didn’t find mermaid.min.js.map since I didn’t copy it to the repository, though I see it on the CDN. But since everything seems to be working for my simple flow diagrams, and the map file is huge, I’m curious what it’s for. I failed to find information in the documentation; should it be mentioned there? Is it optional? For specific diagram types, perhaps?

TIA!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
theorycommented, May 6, 2022

OH, LOL, which is naturally what I do when I then notice it doesn’t load. Got it. A little magical but makes sense.

0reactions
sidharthv96commented, May 6, 2022

Would be nice if the browser only downloaded it if it was needed for debugging…

Seems like the browser only downloads it if you have devtools open. https://stackoverflow.com/questions/44315460/when-do-browsers-download-sourcemaps

Read more comments on GitHub >

github_iconTop Results From Across the Web

MAP File Extension - What is a .map file and how do I open it?
A MAP file is a game map created for games developed using the Quake engine or a related game development engine, such as...
Read more >
Understanding map files - IBM
This topic describes map files and their formats. The binder map file is a symbol map in address order format. Each symbol listed...
Read more >
MAP File - What is it and how do I open it?
The .map file extension is used by computer games that have been created with one of the Quake game engines. These files contain...
Read more >
MAP File Extension - What is .map and how to open?
These files are called Quake Engine Map Files that refer to uncompelled game maps used by the game that Quake engines develop. These...
Read more >
MAP File Extension - What is it? How to open a MAP file?
MAP files mostly belong to Visual Studio by Microsoft. MAP files are used by a lot of software. They are mainly associated with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found