Description
Platform
Flutter Web
Obfuscation
Disabled
Debug Info
Disabled
Doctor
❯ flutter doctor -v
[!] Flutter (Channel [user-branch], 3.29.0, on macOS 15.3 24D60 darwin-arm64, locale en-US) [1,347ms]
! Flutter version 3.29.0 on channel [user-branch] at /Users/eligeller/fvm/versions/3.29.0
Currently on an unknown channel. Run flutter channel
to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
! Upstream repository unknown source is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
• Framework revision 35c388afb5 (9 days ago), 2025-02-10 12:48:41 -0800
• Engine revision 010c8a806b
• Dart version 3.7.0 (build 3.7.0-323.0.dev)
• DevTools version 2.42.0
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,884ms]
• Android SDK at /Users/eligeller/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk"
.
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1) [1,566ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [13ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2) [12ms]
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.5+-12932927-b750.29)
[✓] VS Code (version 1.97.2) [11ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.104.0
[✓] Connected device (8 available) [6.3s]
• Eli iPhone 11 (mobile) • 00008030-000E10513A38802E • ios • iOS 18.3 22D63
• Ashley’s iPhone 14 (wireless) (mobile) • 00008110-0008492E3439401E • ios • iOS 18.1.1 22B91
• Eli iPhone 16 Pro (wireless) (mobile) • 00008140-000603510193001C • ios • iOS 18.3.1 22D72
• Ashley’s iPad (wireless) (mobile) • 00008101-000A453814C3001E • ios • iOS 17.6.1 21G101
• Eli’s iPad Pro (wireless) (mobile) • 00008103-001A203E26C3001E • ios • iOS 18.3.1 22D72
• macOS (desktop) • macos • darwin-arm64 • macOS 15.3 24D60 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.3 24D60 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 133.0.6943.126
[✓] Network resources [147ms]
• All expected network resources are available.
! Doctor found issues in 1 category.
Version
8.13.1
Steps to Reproduce
Run build_runner
with a particular build configuration while using Flutter 3.29.0.
Expected Result
The build_runner
command executes without issue.
Actual Result
The following error is output:
[SEVERE] build_web_compilers:dart2js_modules on package:sentry_flutter/$lib$:
Unsupported operation: dart.html not supported for config specific imports. Only the dart.library.<name> constants are supported.
package:build_modules/src/module_library.dart 209:11 ModuleLibrary.depsForPlatform.depForConditions
package:build_modules/src/module_library.dart 224:47 ModuleLibrary.depsForPlatform
package:build_modules/src/meta_module.dart 189:12 _computeModules.<fn>
package:graphs/src/strongly_connected_components.dart 61:23 stronglyConnectedComponents
package:build_modules/src/meta_module.dart 186:31 _computeModules
package:build_modules/src/meta_module.dart 246:10 _coarseModulesForLibraries
package:build_modules/src/meta_module.dart 231:16 MetaModule.forLibraries
package:build_modules/src/meta_module_builder.dart 47:22 MetaModuleBuilder.build
https://github.com/getsentry/sentry-dart/blob/main/flutter/lib/src/web/sentry_js_binding.dart#L4 has a reference to dart.html. According to https://dart.dev/interop/js-interop/package-web, dart.html is deprecated and shouldn't be used. I'm not sure what exactly is triggering this exception, but removing that line from sentry_js_binding.dart
solves things for me.
Are you willing to submit a PR?
None
Metadata
Metadata
Assignees
Type
Projects
Status
Status