-
Notifications
You must be signed in to change notification settings - Fork 110
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
5.0.0 UIEvent is not defined error with NativeScript #153
Comments
Hmm, I have been referencing declare global {
interface UIEvent {
target: any
}
} |
Thanks for the fast response. Unfortunately that doesn't solve it. Here's a full stacktrace.
The stacktrace is ugly. We can at least see the line in vendor.js it errors in.
|
Ah, sorry, this wasn't a TypeScript error but a runtime error. Hmm, then it seems due to the switch to ng-packagr the // maybe global. instead of window. must be used, I'm not sure about NativeScript
window.UIEvent = () => ({}) This code must be executed before the first import of I'll look into how I can fix this. |
Alright, I just released version 5.0.1 which removes any reference to |
I now get |
Same issue basically. Presumably from here |
Can you please remove that entry from the array manually and test if it works then? I can easily remove that reference as well, but I don't want to go in circles fixing issue after issue but rather all at once. |
Sure thing 👍 Thanks again for the help! |
See #154 |
ReferenceError: UIEvent is not defined
Reproduction steps (assumes NativeScript and Angular CLI are installed)
Looking into how to address this. The error does not show in version 4.1.0.
The text was updated successfully, but these errors were encountered: