Skip to content
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

Backwards compatibility issue - ReferenceError: queueMicrotask is not defined #1999

Open
risharde opened this issue May 25, 2024 · 2 comments

Comments

@risharde
Copy link

Hi, so I'm testing Dexie on mobile development and I get this error when I'm testing on Android 9.
After some research, it seems that the web browser doesn't have a queueMicrotask function (likely due to the age)
But it seems like Dexie is going to be a problem if we don't consider keeping functionality backward compatible at least in regards to mobile (which I think Dexie shines alot for)
I wish I knew enough to fix this but I don't at the moment
Can anyone shed light on how possible it would be to add some backwards compatibility for queueMicrotask?

@dfahlander
Copy link
Collaborator

[email protected] is still maintained in terms of security fixes and other possibly critical things but no active development. But it supports legacy devices (Android 9 is from 2018). I don't know if it would be worth it to add support for this in particular on dexie@4 but there is a polyfil in case you would want to give it a try:

https://polyfill.io/v3/polyfill.min.js?features=queueMicrotask

@dfahlander
Copy link
Collaborator

Or this one maybe: https://github.com/feross/queue-microtask

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants