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.

Incorrect map of json files

See original GitHub issue

Repo:

import moment from 'moment-timezone';
console.log(moment().toISOString());

This will produce an incorrect source map. The latest.json from moment-timezone is included in the bundle but attributed to a random module that is not moment-timezone.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
nikolay-borzovcommented, May 10, 2019

Right, I think this is the reason why random source gets latest.json space. Maybe webpack emits some additional info for generating correct source map tree.

0reactions
nikolay-borzovcommented, Jan 10, 2022

This is the issue of the tool that creates the sourcemap - wepback. Try to check whether the source map contains information about the JSON file

Read more comments on GitHub >

github_iconTop Results From Across the Web

PH32663: INCORRECT MAP OUTPUT JSON DATA WHEN ...
Incorrect map output JSON data when using a JSON Schema as a map output card type tree.
Read more >
Please retry: error (invalid JSON mapping) for Json
Here, in your json data location path is causing error. JSON causes parsing error with backslash. Use \\ instead of \ as below....
Read more >
Article: XML to XML/JSON map producing incorrect results ...
XML to XML/JSON map producing incorrect results for array based items. Knowledge Article on duplication of resultant JSON if mapping not done at ......
Read more >
Warning: Problem loading the .json data file for mapping
The .json data file is the map data file that the Mapping Sheets add-on creates in the xsMapping folder in your Google Drive....
Read more >
Vector map's styles/root.json file is not packaged...
It appears the sprites folder has the wrong .png and .json mapping file as well. This results in Interstate/highway icons being incorrect.
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