Open NathanAlcantara opened 1 year ago
I'm having the same issue and I have tried every example in the documentation.
I've managed to resolve this by installing the previous release of ngx-sweetalert2:
npm i sweetalert2 @sweetalert2/ngx-sweetalert2@12.0.1
I still receive this warning at building thogh:
Warning: /.../node_modules/@sweetalert2/ngx-sweetalert2/fesm2015/sweetalert2-ngx-sweetalert2.mjs depends on 'sweetalert2'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
I tried the same and worked! tks @Faycop!
In my package.json i just put ~12.0.2
, so the error is in 12.1.0!
About the CommonJS warning there is a closed issue about this: #230 :wink:
Same issue with ~12.1.0 version
I had to downgrade to ~12.0.2 version and the error stopped appearing.
@limonte can you help us on this one?
Same issue but it seem like downgrading to 12.0.2 thanks
+1
While using Angular v14, only versions <= 12.0.2 worked, now I'm using Angular v15 and the version 12.1.0 works just fine (haven't encountered any issues so far). I think that the README
file needs to be updated specifying the versions we are supposed to use based on the project version.
For me, even downgrading to v12.0.0 its not working.
Hello, i'm getting this error on Angular 14.2.0 for swal and swalPortal both Component and Directive.
This cause a failure to build. Can you help me? I'm doing wrong?
I'm just install latest versions of ngx-sweetalert2 (12.1.0) and sweetalert2 (11.6.16) and import the module.
Stack: