Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shahr's avatar
Level 10

How to change jQuery to VUE.js

I want to change these codes to vuejs

js

I tried to change the code. but my problem did not solve yet.

<script>
    const app = new Vue({
        el: '#app',
        data: {
            date: ''
        },
        components: {
            DatePicker: VuePersianDatetimePicker
        }
    });

    const axios = require('axios');
</script>
0 likes
2 replies
MaverickChan's avatar

You should either use webpack or vite to handle vuejs, it should be compiled. check the doc please.

1 like

Please or to participate in this conversation.