function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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>