joshsoftware / joshsoftware/React-Native-Contribution

Fix for "InvalidMappingColumn" Error in react-native-bundle-visualizer

Open
#4 0 comments 0 reactions 1 assignee Claimed by @Abhi-at-Josh View on GitHub
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

I have faced issue
```
=== error === {
bundles: [],
errors: [
{
bundleName: '/var/folders/pc/cb7cs0td4gzf_f8wv47m5ww80000gq/T/react-native-bundle-visualizer/repomobile/ios.bundle',
code: 'InvalidMappingColumn',
message: 'Your source map refers to generated column 141 on line 176, but the source only contains 140 column(s) on that line.\n' +
'Check that you are using the correct source map.',
error: [AppError]
}
]
}
```
I tried to change the version
` + "react-native-bundle-visualizer": "3.1.3",`
To
`+ "react-native-bundle-visualizer": "3.1.0",`
but not[+] worked[/+][-] working[/-]
So I tried and it worked
```
return explore(
{
code: bundleOutput,
map: bundleOutputSourceMap
},
{
onlyMapped,
noBorderChecks: true, // <----------- Add this line
output: {
format,
filename: bundleOutputExplorerFile,
},
}
);
```
It worked but still unable to map 17.70% ,I will try to fix it

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.