t4t5 / sweetalert

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

Typescript production compile error #936

Open yaroslawww opened 4 years ago

yaroslawww commented 4 years ago

When I compile code on production environment. There error:

ERROR in project_path/node_modules/sweetalert/typings/sweetalert.d.ts(4,9):
Subsequent variable declarations must have the same type.  Variable 'swal' must be of type 'typeof import(project_path/node_modules/sweetalert/typings/sweetalert")', but here has type 'SweetAlert'. 

Now I can fix this issue only adding "// @ts-ignore". Maybe anybody know some more relevant fix?

eddiepaz commented 4 years ago

I get the same issue just on regular compile in Angular 10 (have strict turned on).

vokomarov commented 3 years ago

Same here using Vue.js 2.6.12, Typescript 3.9.3.

JohnyVB commented 3 years ago

I have the same error trying to deploy a project in angular 10 on heroku. any solution?