Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error fixed for swal to _swal for angular 7 & above #945

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KavishkaRajakaruna
Copy link

Error fixed for the following error on angular

`ERROR in node_modules/SweetAlert/typings/sweetalert.d.ts:4:10 - error TS2403: Subsequent variable declarations must have the same type. Variable 'swal' must be of type 'typeof import("E:/projects/New folder/certistore/node_modules/SweetAlert/typings/sweetalert")', but here has type 'SweetAlert'.

4 const swal: SweetAlert;
~~~~

node_modules/SweetAlert/typings/sweetalert.d.ts:1:1
1 import swal, { SweetAlert } from "./core";
~~~~~~
'swal' was also declared here.`

@tbishnoi
Copy link

tbishnoi commented Jun 7, 2021

Will this be fixed anytime soon. this is pending for so long. Do anyone has a workround where we dont have to change this file.

@KavishkaRajakaruna
Copy link
Author

Think anyone doesn't have any other option than to change the file.

Copy link

@juandps juandps left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works fine

@juandps
Copy link

juandps commented Mar 12, 2022

Please merge this change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants