sagalbot / vue-select

Everything you wish the HTML <select> element could do, wrapped up into a lightweight, extensible Vue component.
https://vue-select.org
MIT License
4.62k stars 1.33k forks source link

v4.0.0-beta.3 CSS Error when building with Vite.js #1607

Open coolsam726 opened 2 years ago

coolsam726 commented 2 years ago

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

Describe the bug While trying to build with vite.js, I encounter the following error:

[vite:css] Cannot read property 'length' of undefined
file: /data/www/savannabits/acacia-kitch/acacia/node_modules/vue-select/src/components/Select.vue?vue&type=style&index=0&lang.css
error during build:
TypeError: Cannot read property 'length' of undefined

Reproduction Link N/A Steps To Reproduce

  1. Create a vite.js project with vue 3
  2. Install vue-select
  3. Run vite build

Expected behavior Successful compilation

Screenshots image

coolsam726 commented 2 years ago

When I downgrade to beta.2 the issue does not appear.

sagalbot commented 2 years ago

@coolsam726 thanks for reporting, I'll take a look asap!