t4t5 / sweetalert

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

Fix typings for newer versions of TypeScript #892

Open Perl99 opened 5 years ago

Perl99 commented 5 years ago

Fixes #890

DVGalarza commented 5 years ago

I merged your PR into my personal fork of sweetalert, and imported the fork as an NPM package, but the parts of my code importing sweetalert trigger this error:

Module not found: Error: Can't resolve 'sweetalert' in 'C:\dev\...

Did you run into something similar?

(Using a standard import: import swal from 'sweetalert';)

Perl99 commented 5 years ago

I don't remember having such a problem.

DVGalarza commented 5 years ago

Okay, it probably has something to do with how I’m importing the repo then. Thanks!