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

[Bug] TypeError: Illegal invocation when calling setTimeout #252

Closed
nev21 opened this issue Mar 18, 2024 · 1 comment
Closed

[Bug] TypeError: Illegal invocation when calling setTimeout #252

nev21 opened this issue Mar 18, 2024 · 1 comment
Labels
bug Something isn't working published-npm
Milestone

Comments

@nev21
Copy link
Contributor

nev21 commented Mar 18, 2024

When using the UMD format the this bound to the fnApply is incorrect causing the TypeError.

This issue only surfaced when using the UMD (main) entrypoint as the usage becomes tsUtils.scheduleTimeout so the this becomes the exports instance rather than the global (or undefined)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working published-npm
Projects
None yet
Development

No branches or pull requests

1 participant