Skip to main content

Flutter Web source maps are not working

Updated over a month ago

Issue

I have uploaded my flutter web source maps, but I am still seeing minified stack traces.

Applies To

  • All SaaS Customers

  • Source Maps

  • Flutter SDK

Symptoms

Upon looking at the debug logs of the source maps upload process, entries like below can be seen:

- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for {insert file name})

Resolution

Usually, if you look at the very bottom of the minified source file, the source reference will be a comment labeled as //# sourceMappingUrl=. It looks like this is not included in some of your minified files, and that means that Flutter cannot find the corresponding .map file. This is not an issue with Sentry, but Flutter itself.

Please review Flutter's documentation on how to troubleshoot this issue. You might also want to upgrade your Flutter version, as this has helped a few users in the past.

Did this answer your question?