Coder Social home page Coder Social logo

Comments (9)

avil13 avatar avil13 commented on June 15, 2024

Can you give me your tsconfig.json?

from vue-sweetalert2.

LuckyURE avatar LuckyURE commented on June 15, 2024

from vue-sweetalert2.

avil13 avatar avil13 commented on June 15, 2024

Sorry for the wait.
Because of what the tests broke and I thought that this could affect your issue.
You can look at this example.

Pay attention to webpack.config.js and the file tsconfig.json.

https://github.com/avil13/vue-sweetalert2/tree/master/example

from vue-sweetalert2.

dukemike avatar dukemike commented on June 15, 2024

@LuckyURE, did you resolve this? I'm getting the same and my tsconfig.json looks right to me but I'm far from an expert.

from vue-sweetalert2.

LuckyURE avatar LuckyURE commented on June 15, 2024

from vue-sweetalert2.

avil13 avatar avil13 commented on June 15, 2024

@dukemike Try version 1.5.11, please.
I want to correct this error, this is a matter of principle.

from vue-sweetalert2.

dukemike avatar dukemike commented on June 15, 2024

@avil13 Sorry for the delayed response. I created a new project using Vue CLI 3, added [email protected] and the sample code into the App.vue.

When using, this.$swal, I receive the Javascript error Cannot read property '$swal' of null when clicking the button. When attempting to use Vue.swal() yarn fails with Property 'swal' does not exist on type 'VueConstructor<Vue>'..

What can I do to help?

package.json.txt
tsconfig.json.txt
App.vue.txt

from vue-sweetalert2.

avil13 avatar avil13 commented on June 15, 2024

@dukemike fixed in 1.6.3.
Thank you.

P.S.
Don't forget to add in main.ts

import VueSweetalert2 from 'vue-sweetalert2';
Vue.use(VueSweetalert2);

from vue-sweetalert2.

dukemike avatar dukemike commented on June 15, 2024

Thanks!

from vue-sweetalert2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.