Skip to content

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

@Abhi-at-Josh

Description

@Abhi-at-Josh

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions