Skip to content

[connectivity_for_web] Crash when run or build in release mode  #60855

@chitgoks

Description

@chitgoks

Hi. i have no idea why in debug it works ok . but when i build and or run in release, it gives out this js console error message
js_helper.dart:1348 Uncaught TypeError: J.aL(...).ga5P is not a function

http://localhost:7357/flutter/.pub-cache/hosted/pub.dartlang.org/connectivity_for_web-0.3.0/lib/src/network_information_api_connectivity_plugin.dart

so the function does not exist. im confused why on debug it works ok but does not in release.

yes there is a not in readme that not all browsers support it. but that it has a fallback and it doesny fall back on release because that error shows up.

please advise. thank you.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: releaseChallenges faced when attempting to productionize an appc: crashStack traces logged to the consolecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.found in release: 1.20Found to occur in 1.20has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: connectivityThe connectivity pluginpackageflutter/packages repository. See also p: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions