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

Mobile | Android | iOS swipe fails. Uncaught ReferenceError: global is not defined. #48

Closed
ChrisTomAlx opened this issue Aug 16, 2018 · 0 comments

Comments

@ChrisTomAlx
Copy link

In Angular 6, the build succeeds but the swipe doesn't work and the last card in the stack is shown. But it cannot be interacted with.

On inspect you get the following errors :-

  • Uncaught ReferenceError: global is not defined
  • v is not a function

This helped me solve the issue. So leaving it here for others that run into the same problem.

In your polyfills.ts file (Example location :- E:\temple\tinderapp\app\src) add the following code below the last import statement :-
(window as any).global = window;

If this doesn't work, there are other solutions in the link provided, you can try those as well.

Cheers,
Chris
Neutrinos

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

1 participant