M upgrading my ionic app from Ionic 3 to 4. But I got this error.
I know there are many solutions available in other forums. But they didn't work for me.
I tried (window as any).global = window;
but it didn't work.
And I also tried to add Dragula
. It didn't work either.
What i am missing? What should I do?
as @richardsengers answer
https://github.com/aws-amplify/amplify-js/issues/678#issuecomment-389106098
include this
(window as any).global = window;
In your polyfills.ts
file
If anyone here with the same issue using Ionic 5 with Angular 10,
Install globalthis:
npm install globalthis
Add:
import 'globalthis/auto';
in polyfills.ts
Note : Adding (window as any).global = window; In polyfills.ts file didn't work in my case
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With