We would like to use https://github.com/auth0/angular2-jwt in our application. And right now it says, Internet Explorer 11 support requires a URL polyfill. Need help or steps in order to add this polyfill in the Angular App.
The official documentation describes the necessary steps.
What you must do is:
Ensure you have the Angular CLI in your computer installed globally if you don't already:
npm install -g @angular/cli
cd
to your project root (the directory with package.json
in)
Install the URL polyfill (the --save
adds the polyfill to your package.json
file):
npm install url-polyfill --save
Open the Angular polyfills.ts
file and after the line with "/** IE10 and IE11 requries...
" add this line:
import 'url-polyfill';
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