Closed masashi-sutou closed 4 years ago
downgrade to v2.1.1 its the only way to solve type problem on nuxt build, in my case!
Hi. Try this
import Swal from 'sweetalert2/dist/sweetalert2.js';
import { SweetAlertOptions } from 'sweetalert2'; // This is Interface. js files don't store interfaces
Hi. Try this
import Swal from 'sweetalert2/dist/sweetalert2.js'; import { SweetAlertOptions } from 'sweetalert2'; // This is Interface. js files don't store interfaces
@avil13 This solution would be within the specific component/file, where do you want to use SweetAlert2?
@grippado Excuse me. Hurried up with the answer.
This bug came out of this commit. (https://github.com/avil13/vue-sweetalert2/commit/a2f172880338a002e289f7a9b9266932166948ad), I'll try to fix it now.
@masashi-sutou fixed in v3.0.6
@avil13 in nuxt, I'm force import css in nuxt.config
, this commit resolve this too?
css: [
'sweetalert2/dist/sweetalert2.css'
],
thx for quick response and interaction <3
@grippado I will try to install a fresh Nuxt and play it.
@grippado I will try to install a fresh Nuxt and play it.
@avil13 at v3.0.6, and Nuxt v2.13.11, Ill removed import CSS from nuxt.config
, and it is fully useful and functionally
@grippado Actually, it's a problem because there was a issue of how to customize alert themes. And that's exactly what you can do by connecting the styles separately.
I will leave this functionality in this version, but I will have to think about how to solve it better. Thank you for your feedback.
what's the problem
cross-env NODE_ENV=development nuxt-ts
, I get the following error.environment
workaround