vue-select
vue-select copied to clipboard
Missing `src` directory when installing as dependency
- Vue Version: 3.2.22
- Vue Select Version: v4.0.0-beta.5 (but this problem appeared since version v4.0.0-beta.4)
Describe the bug
README.md file has this text:
Alternatively, you can import the scss for complete control of the component styles: @import "vue-select/src/scss/vue-select.scss";
But I don't have the src
directory (I have only dist
folder) because of the added option "files" in the package.json
file (in v4.0.0-beta.4)
"files": [
"dist"
],
Expected behavior
I'm not sure if this is a bug. This may have been intended, but the documentation has not been updated. Is there any way to add a dependency to my project along with the src
directory?
Switched from beta3 to beta5 and I am now getting Failed to resolve component: v-select
. Is it coming from this missing 'src' directory?
@joubu can you post a reproduction?
@joubu can you post a reproduction?
import { createApp } from "vue";
import vSelect from "vue-select";
import App from "./App.vue";
const app = createApp(App);
app.component("v-select", vSelect);
app.mount("#app");
This works in beta3, not beta5 where I am seeing
[Vue warn]: Failed to resolve component: v-select
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at <App>
I guess #1701 will fix this, thanks!