source-map-cli icon indicating copy to clipboard operation
source-map-cli copied to clipboard

Could not resolve mapping: Unexpected token ( in JSON at position 0

Open ray-kay opened this issue 2 years ago • 1 comments

Hi there,

I am trying to resolve an error on an Angular 15 prod build

source-map resolve main.c15d80c6dc61f528.js 1 23044

But it gives me the error: Could not resolve mapping: Unexpected token ( in JSON at position 0

Please find the files attached.

Hope you can help me.

Many thanks in advance. main.c15d80c6dc61f528.zip

ray-kay avatar Sep 20 '23 10:09 ray-kay

I had this issue as well. Try passing the .js.map file instead:

source-map resolve main.c15d80c6dc61f528.js.map 1 23044

gclark-eightfold avatar Nov 09 '23 21:11 gclark-eightfold