-
Notifications
You must be signed in to change notification settings - Fork 12
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
setImmediate is not defined in browsers #27
Comments
Ugh, that's super annoying. Well, https://github.com/YuzuJS/setImmediate is only ~6kb; I don't see much harm in including it in the distribution. |
How do you feel about changing dcrf-client to use console.log by default, with configuration options to use winston? Node specific dependencies in an otherwise pure JS module are making my life miserable trying to convert a vue app served by vue-cli to a vue app served by vite. Things like:
|
Seems like Winston uses setImmediate which isn't available in browser environments.
I was able to work around the issue using a polyfill, as mentioned in this issue: winstonjs/winston#1354 (comment). Not sure that there is anything to do about this in dcrf-client, other than adding this workaround to documentation.
The text was updated successfully, but these errors were encountered: