Using VueMultiselect with Vue 3: A guide for beginners

I'm currently experimenting with the vue multiselect component, but when I include it in the template, I am encountering a series of warnings and errors.

<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="067073632b6b736a726f75636a636572463428372836">[email protected]</a>"></script>
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="90e6e5f5d0a3bea2bea3a7">[email protected]</a>/dist/vue.global.js"></script>

// Main Component

const { createApp } = Vue;

const componentCaptura = {
    components:{
        'vue-multiselect': window.VueMultiselect.default,
    },
    data(){
        return {
            message:"Hello from the child component",
            products:[],
            product:null
        }
    },
    mounted(){},
    template:/* html */`
    <div class="content-wrapper animated fadeInLeft" style="padding: 0 2.2rem;">
        <div class="content-header row mb-1" style="border-bottom: 1px solid #d8d8d8;  -webkit-box-shadow:0 3px 5px -6px #222;-moz-box-shadow:0 3px 5px -6px #222;box-shadow:0 3px 5px -6px #222;">
            <div class="content-header-left col-md-6 col-12 mb-2 breadcrumb-new">
                <h2 class="content-header-title mb-0 d-inline-block">CONTROL ORIGINACION</h2>
                <div class="row breadcrumbs-top d-inline-block">
                    <div class="breadcrumb-wrapper col-12">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a><b>REPORTE CAPTURA DIARIA</b></a></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <section id="dom">
            <div class="row">
                <div class="col-4">
                    <div class="card">
                        <div class="card-content collapse show">
                            <div class="card-header bg-gradient-x-info" style="border-bottom: 1px solid rgb(216, 216, 216); box-shadow: rgb(34, 34, 34) 0px 3px 5px -6px;">
                                <h4 class="card-title text-white" id="file-repeater">Captura</h4>
                            </div>
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-xl-12">
                                        <vue-multiselect :options="[]" placeholder="Seleccionar Cliente..."></vue-multiselect>
                                    </div>
                                </div>
                                <div class="form row">
                                    <fieldset class="form-group position-relative has-icon-left col-xl-6">
                                        <input type="text" class="form-control round" id="iconLeft10" placeholder="FECHA">
                                        <div class="form-control-position">
                                            <i class="la la-calendar info"></i>
                                        </div>
                                    </fieldset>
                                    <fieldset class="form-group position-relative has-icon-left col-xl-6">
                                        <input type="text" class="form-control round" id="iconLeft10" placeholder="EXPEDIENTES">
                                        <div class="form-control-position">
                                            <i class="la la-clipboard info"></i>
                                        </div>
                                    </fieldset>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    `,
};

let app = createApp({
     data() {
         return {
             message: 'Hello !'
         };
     },
     mounted(){},
     components: {
         'component-captura':componentCaptura
     },
     });
    app.mount('#app');

</script>

HTML

<div class="content-wrapper" style="padding-top: 0px;">
   <div class="content-body">
        <div id="app">
            <component-captura></component-captura>
        </div>
   </div>
</div>

The issue seems to be related to the vueselect component triggering the warnings and errors.

If you have any insights on how to address this problem, please share.

CONSOLE WARNINGS AND ERRORS:

vue.global.js:1616 [Vue warn]: Property "$createElement" was accessed during render but is not defined on instance. 
    at <VueMultiselect options= [] placeholder="Select Client..." > 
    at <Anonymous> 
    at <App>
warn$1 @ vue.global.js:1616
(anonymous) @ VM5920:2185
Show 35 more frames
vue.global.js:1616 [Vue warn]: Property "_self" was accessed during render but is not defined on instance. 
    at <VueMultiselect options= [] placeholder="Select Client..." > 
    at <Anonymous> 
    at <App>

Show 35 more frames
vue.global.js:1616 [Vue warn]: Unhandled error during execution of render function 
    at <VueMultiselect options= [] placeholder="Select Client..." > 
    at <Anonymous> 
    at <App>

Show 35 more frames
vue.global.js:1796 Uncaught TypeError: Cannot read properties of undefined (reading '_c')
    at Proxy.i (<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e686b7b33736b728202876ce38785838e868d93778388878988">[email protected]</a>:1:36878)

To provide further insight into my issue, I've included the console log details above.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Discovering and revising an item, delivering the complete object, in a recursive manner

After delving into recursion, I find myself at a crossroads where I struggle to return the entire object after making an update. Imagine you have an object with nested arrays containing keys specifying where you want to perform a value update... const tes ...

Step-by-Step Guide for Attaching Table Legs

I believe that the four legs should be an integral part of the table, rather than just added on like an afterthought. What would be the best way to create new instances of legs and attach them in a way that makes the back legs look slightly smaller than t ...

"Enhance the user experience by enabling clickable preview files in dropzone

After working on my Django project, I have implemented the following: <link href="{% static 'media/dropzone/dist/min/dropzone.min.css' %}" type="text/css" rel="stylesheet" /> <form class="dropzone" id="my-media-dropzone" action="/some/u ...

Tips for incorporating the camera from fbxloader into your three.js scene

I am currently utilizing fbxloader from three.js to incorporate a model into my scene. I have noticed that the most recent version of fbxloader.js (https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/FBXLoader.js) has the capability to read ...

Validating multiple input fields using Javascript

Initially, I must ensure that the ID and password textboxes are not empty (which is functioning correctly). Following that step, I need to verify on the same form that the ID entered in the textbox is a numeric value within the range of 3000 to 3999 (tha ...

Utilizing the power of JavaScript to specifically prevent the default behavior within an ASP server control

An ASP.NET server control is used in the code snippet below: <asp:HyperLink Visible='<%# (GetAnswer(Eval("AnsQID"))) != 1 %>' ID="HyperLink1" runat="server" NavigateUrl="#" ToolTip='Like this answer' onclick="javascript:( ...

Discover the secret to loading multiple Google charts simultaneously, despite the limitation that Google charts typically only allow one package to load at a time

I currently have a pie chart displaying smoothly on my webpage, but now I am looking to add a treemap as well. The code snippet for the treemap includes the package {'packages':['treemap']}. It has been stated that only one call should ...

How can I perform a cross-domain XMLHTTPREQUEST to communicate with an FTP server using the appropriate syntax?

I am currently using a webDav CORS plugin to manage files on a webDav server through POST/PUT/GET/REMOVE/ALLDOCS requests. Now, I am attempting to achieve the same functionality for FTP but am facing difficulties with the xmlhttprequest syntax (I keep rec ...

Has xlink:href become outdated for svg <image> elements?

In the realm of SVG attributes, it is noted by MDN xlink:href that href should be used over xlink:href. Interestingly, on the svg example page, last revised on July 6, 2017, the attribute utilized in the given example is xlink:href. The question arises: ...

Steps for selecting checkboxes according to database values in AngularJSWould you like to learn how to automatically check checkboxes based on the

I am experiencing an issue where I can successfully insert values into the database based on what is checked, but I am encountering difficulty retrieving the values when fetching from the database. Can anyone provide me with some assistance? Thank you. Th ...

mention a Vue.js component computed property that points to a specific DOM element

Is there a way to access the DOM element that initiated a method inside a Vue component computed property? For example: <template> <img :src="getUrl" class="image1"/> <img :src="getUrl" class="image2"/> </template> <scri ...

Invoke the session on a different page and incorporate it into your JavaScript code

My php files, ajax.php and index.php, contain a mix of php code, html, and javascript. I am developing a quiz website where questions are retrieved from a database using sql in ajax.php and displayed on index.php through an ajax method. The user's sco ...

Sort through the array using a separate array in Vuejs

I am currently working with two arrays: { "products": [ { "name": "Jivi", "Hint": "45-60 IE/kg alle 5 Tage\n60 IE 1x/Woche\n30-40 IE 2 x/Woche", "frequency": ["1", "2", "8"] }, { "name": "Adynovi", ...

Having trouble with the join and leave command? The leave function seems to be malfunction

I've written a code for joining and leaving, but I'm having trouble with the leave function. (The join function works fine, but every time I try to leave, it crashes) > client.on('message', async message => { if (!message.gui ...

javascript hide rows without data

I have a knack for tweaking existing code to suit my needs, but I'm not very proficient in writing my own from scratch. That being said, here's my current dilemma. My pool league uses a Google sheet to manage a variety of statistics, and with so ...

The Vue.js modal is unable to resize below the width of its containing element

My challenge is to implement the Vue.js modal example in a larger size. I adjusted the "modal-container" class to be 500px wide, with 30px padding and a max-width of 80%. However, I'm facing an issue where the "modal-mask" class, containing the contai ...

Using scripted <svg> with <defs> and attempting to reference it via JavaScript results in failure

My goal is to dynamically generate svg path elements in html using JavaScript. I would like to place these paths within a <defs> element so that they can be reused later in <use> xlink:href elements. However, after creating the paths (by pr ...

Experiencing difficulties with the onClick functionality on a registration form

Recently started learning React, so I apologize if the solution seems obvious. Currently working on a registration form that should create a new account upon submission using AJAX. Although I understand that I need to use onChange to gather the submitted i ...

Discover ways to circumvent using multiple conditions in a switch statement for a solitary object

Receiving an object from the client side in this format: var condition={"bedrooms":"1,2,3,4","Inhibition":"1,6","possession":"3","id":"8",toilets:"1,2",...,} The object must have the same keys and only be a single object, but its length can vary (1/2 ...