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 in ./node_modules/sweetalert2/dist/sweetalert2.all.js 3843:19 #2625

Closed
verlor opened this issue May 29, 2023 · 5 comments
Closed

ERROR in ./node_modules/sweetalert2/dist/sweetalert2.all.js 3843:19 #2625

verlor opened this issue May 29, 2023 · 5 comments
Labels

Comments

@verlor
Copy link

verlor commented May 29, 2023

Today I had to re-build my project from the ground up and after installing all the dependencies and starting it, I'm getting the following:

ERROR in ./node_modules/sweetalert2/dist/sweetalert2.all.js 3843:19                                                                                                                           
Module parse failed: Unexpected token (3843:19)                                                                                                                                               
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders                            
|       return swalPromise(currentInstance, domCache, innerParams);                                                                                                                           
|     }                                                                                                                                                                                       
>     disableButtons = disableButtons;                                                                                                                                                        
|     enableButtons = enableButtons;                                                                                                                                                          
|     getInput = getInput;                 

As context, I'm using webpack, "^4.41.5".

Could it be related to the new released version?

@sudhiraplhind
Copy link

We are hitting this issue as well. webpack version is 4.39.2.

@spqa
Copy link

spqa commented May 29, 2023

Got same issue, downgrading to 11.7.5 fixed it

@limonte
Copy link
Member

limonte commented May 29, 2023

Oops, sorry for this issue. I'm on it, will ship the fixed version soon.

github-actions bot pushed a commit that referenced this issue May 29, 2023
## [11.7.7](v11.7.6...v11.7.7) (2023-05-29)

### Bug Fixes

* assign instance methods to prototype in a webpack4 compatible way (fixes [#2625](#2625)) ([f8942e8](f8942e8))
@limonte
Copy link
Member

limonte commented May 29, 2023

🎉 This issue has been resolved in version 11.7.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@verlor
Copy link
Author

verlor commented May 29, 2023

Thanks for the quick response!

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

No branches or pull requests

4 participants