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

ambiguous indirect export: VueSelect #1819

Open
mroustchev opened this issue Feb 15, 2024 · 1 comment
Open

ambiguous indirect export: VueSelect #1819

mroustchev opened this issue Feb 15, 2024 · 1 comment
Labels

Comments

@mroustchev
Copy link

Please respect maintainers time by filling in these sections. Your issue will likely be closed without this information.

  • Vue Version: 3.3.4
  • Vue Select Version: 4.0.0-beta.6

Describe the bug
I am getting the follwing error message
ambiguous indirect export: VueSelect

This is happening after I have include
import { VueSelect } from "vue-select";
in my component file and run the app again

Reproduction Link
A link to a reproduction of the bug. This is a huge help.

Steps To Reproduce

  1. create a new vue project
  2. install the latest version with
    npm install vue-select@beta
  3. Include the following import in the script section from HelleoWorld.vue
<script setup>
import { VueSelect } from "vue-select";  // include this import
defineProps({
  msg: {
    type: String,
    required: true
  }
})
</script>
  1. Try to run tha app and you will get the error message

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image
image

@mroustchev mroustchev added the bug label Feb 15, 2024
@magic-77
Copy link

magic-77 commented Feb 19, 2024

@mroustchev had the same Problem with Vue 3.4.
You can can solve this importing the component that way

const App = createApp(MainVueComponent);
App.component('VueSelect', VueSelect);

or locally inside component

import VueSelect from 'vue-select';

than you need to have to define "watch()" to listen for changed options

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

No branches or pull requests

2 participants