Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working in vue2 need some help this is my code... #16

Open
racielbd opened this issue Jun 25, 2020 · 3 comments
Open

Not working in vue2 need some help this is my code... #16

racielbd opened this issue Jun 25, 2020 · 3 comments

Comments

@racielbd
Copy link

racielbd commented Jun 25, 2020

not working in vue2 this is my code...

<template>
  <div>
    <div class="form-group">
        <label for="select2" class="col-sm-3 control-label">   
            A searchable select with names and localized in en-US:
         </label>
         <div class="col-sm-5">
               <vue-select
                  class="vue-select2"
                  name="select2"
                  :options="options2"
                  :model.sync="result2"
                  :searchable="true"
                  language="en-US"
                >
                </vue-select>
           </div>
           <div class="col-sm-4">
                <p class="form-control-static">
                       Selected Result: <span class="vue-result2">{{ result2 }}</span>
                </p>
           </div>
     </div>
  </div>
</template>
<script>
export default {
   components: {
    "vue-select": require("vue-select2")
   },
   data() {
        return {
           serverErrors: {},
           result2: '',
           options2: [
                 {
                    text: 'name1',
                    value: 'value1',
                  },
                  {
                     text: 'name2',
                     value: 'value2',
                   },
             ],
         }
     }
}
</script>

bud got this..

[Vue warn]: Failed to mount component: template or render function not defined.
found in
---> <VueSelect>

imagen

Originally posted by @racielbd in #11 (comment)

@duepi
Copy link

duepi commented Sep 9, 2020

+1

@balaram26
Copy link

@racielbd did u find any solutions? i have the same issue.

@sugarman9907
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants