+ Start a Discussion
Alexander YhapAlexander Yhap 

SweetAlert 2 is throwing error in Winter 18

When swal() is called in a Lightning Component and error is thrown: Uncaught (in promise) TypeError: W.attributes.hasOwnProperty is not a function
Rameshvar DayalRameshvar Dayal

HI 

import swal from 'sweetalert2';

window.swal = swal
Rameshvar DayalRameshvar Dayal
Include cdn as 
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/7.29.2/sweetalert2.all.js"></script>