Sourcemap not Working (parcel)


#1

Trying to upload and validate sourcemaps generated by parcel I am receiving:

Source Map Validation Report
  Minified Scripts
    /wwwroot/public/auth.db205756.js (sourcemap at /auth.4254e7c7.map)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for /wwwroot/public/auth.db205756.js.)
      - error: failed to process: relative URL without a base
    /wwwroot/src.54de7fdd.js (sourcemap at /src.767d0402.map)
      - warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for /wwwroot/src.54de7fdd.js.)
      - error: failed to process: relative URL without a base
  Source Maps
    /wwwroot/public/auth.4254e7c7.map
      - warning: missing sourcecode (../../src/0)
    /wwwroot/src.767d0402.map
      - warning: missing sourcecode (../src/0)

These sourcemaps are generated using parcel build and the minified JS has the sourcemap line that references the file.

I’m not sure if the problem lies with the generation of the sourcemaps, or when uploading them to sentry using the sentry-cli.

The shell commands used, partially redacted, to upload are:

version=$(sentry-cli releases propose-version)
sentry-cli  --auth-token <redacted> releases -o <redacted> -p frontend new $version 
sentry-cli  --auth-token <redacted> releases -o <redacted> -p frontend files $version upload-sourcemaps \
  ./wwwroot --url-prefix "/wwwroot" \
  --rewrite --validate