This repository has been archived by the owner on Jul 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 235
Web - TypeError: Cannot read properties of undefined (reading 'toggle') #176
Comments
It seems to be a timing issue with the app and JS libraries being available , since a call to
|
I'm also seeing this, thanks for the workaround @alexagat . |
I'm guessing it's related to #171 |
the same here, @alexagat thanks for the workaround! |
CubeDr
pushed a commit
to hy-cs-team/jbtimer
that referenced
this issue
Dec 8, 2023
TypeError: Cannot read properties of undefined (reading 'toggle') creativecreatorormaybenot/wakelock#176
I will soon discontinue this repository. Please use wakelock_plus: ^1.1.6 instead. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Calling
Wakelock.enable()
within themain
function throws aTypeError
when running against web.This was replicated in a new project with only the addition of the Wakelock package.
App Code That Replicates Issue
Flutter Doctor Output
[✓] Flutter (Channel unknown, 3.0.1, on macOS 11.6.5 20G527 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.67.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability
• No issues found!
The text was updated successfully, but these errors were encountered: