-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source Maps does not works with Flutter Web #38
Comments
@chathu-novade The screenshot is about the source maps of the Dart SDK itself and not your App's code. |
The hidden source section of the screenshot looks like the following.
|
I don't follow, the screenshot below has the symbolicated stack trace, it's not minified, what's the problem you are having? can you please update the issue description with more details? |
@marandaneto I can not see any stack trace related my my dart code in the flutter project. It show only minified:e4b and exception but not the line of dart code. |
@chathu-novade can you provide the code snippet of the Sentry SDK init? |
Sentry SDK init await SentryFlutter.init(
(options) {
options
..environment = env.toStr()
..release = sentryRelease // from String.fromEnvironment('SENTRY_RELEASE')
..dsn = dsn;
},
// Init your App.
appRunner: () => runApp(const _App()),
); Sentry plugin config sentry:
upload_source_maps: true Flutter build command flutter build web --dart-define=SENTRY_RELEASE=$(SENTRY_RELEASE) --dart-define=AMPLITUDE_API_KEY=$(AMPLITUDE_API_KEY) -t lib/web/main.staging.dart --web-renderer canvaskit --source-maps --dart-define=BROWSER_IMAGE_DECODING_ENABLED=false |
@chathu-novade |
@chathu-novade you probably need |
|
|
The flutter mobile builds works well Issue is with the web build |
@chathu-novade I don't see any problem with your errors, its symbolicated correctly. |
--release Build a release version of your app (default mode). |
@marandaneto In that error there are errors which says source code not found. |
@chathu-novade that's already answered here #38 (comment) |
About
Does this applicable to the web too? web |
Please raise an issue on https://github.com/getsentry/sentry-dart and provide a minimal reproducible example (this is required), it's unclear what's the problem here since the linked event just works, without more context, we can't help. |
Check this issue and expand the stackstrace. We can not see which file threw the exception and not usable stack trace. |
Environment
Flutter SDK version
"flutterSdkVersion": "3.0.5"
sentry_dart_plugin version:
sentry_dart_plugin: ^1.0.0-beta.1
Steps to Reproduce
flutter flutter packages pub run sentry_dart_plugin
Expected Result
We were using sentry-cli to upload source map previously and it also didn't work. We were asked to try this new plugin and seem it also doesn't work.
Actual Result
Source maps should setup correctly.
The text was updated successfully, but these errors were encountered: