Vue-select: Module not found: Error: Can't resolve 'vue-select'

Created on 22 Feb 2019  路  4Comments  路  Source: sagalbot/vue-select

Good day,

I'm using this package since a year ago, in a production app. But I'm facing a problem that says,

Module not found: Error: Can't resolve 'vue-select' even it's already on my node_modules and package.json of my project.

I tried to reinstall package, but it is still the same error. Please help me. I'll release another version of my app in a few days but it's a big problem because I already implemented vue-select in my different project modules. It is a big problem for me.

I'm using new version, 2.5.1

Please help it is ruining the app that maintaining for a client.

support

Most helpful comment

Thanks @luizzz

For anyone reading, the trick is to change in your package.json
"vue-select": "github:sagalbot/vue-select"
with
"vue-select": "^2.5.1"

All 4 comments

Same here.

Do the following, temporarily:

npm remove vue-select
npm install [email protected]

Not sure what's causing your issue. 2.5.1 has been out for a while and I haven't had this issue reported.

I was able to install 2.5.1 and 2.5.0 on a new test project. Can you post your package.json and package-lock?

Thanks @luizzz

For anyone reading, the trick is to change in your package.json
"vue-select": "github:sagalbot/vue-select"
with
"vue-select": "^2.5.1"

CSS was removed checkout this : Separated CSS.

Also you can link css <link rel="stylesheet" href="https://unpkg.com/vue-select@latest/dist/vue-select.css">

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lau-a picture lau-a  路  3Comments

mattWalters0 picture mattWalters0  路  3Comments

fabianmieller picture fabianmieller  路  3Comments

rafalolszewski94 picture rafalolszewski94  路  3Comments

FrozenIce0617 picture FrozenIce0617  路  3Comments