t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.4k stars 2.84k forks source link

"Not valid!" message using the NPM package #832

Open aminta opened 6 years ago

aminta commented 6 years ago

If I add SweetAlert to my project via NPM package (npm install sweetalert --save-dev and import swal from 'sweetalert';) I got "Not valid!" message error (see the related issue for description), so I have to import the full minified Js file with some like import '../vendor/sweetalert.min.js';.

I'm using Gulp as TaskRunner and webpack for Js.