https://vite.new https://nuxt.new
Description
When installing the input-group component using the CLI, the installation fails because it doesn't create all the required component files, causing import errors.
Steps to Reproduce
Run npx shadcn-vue@latest add input-group The CLI installs only partial files:
Expected Behavior
All component files should be created, including:
Actual Behavior
The installation process creates an incomplete set of files and the index.ts file tries to export components that don't exist:
// index.ts tries to export:
export { default as InputGroupButton } from './InputGroupButton.vue' // ❌ File doesn't exist
export { default as InputGroupInput } from './InputGroupInput.vue' // ❌ File doesn't exist
export { default as InputGroupTextarea } from './InputGroupTextarea.vue' // ❌ File doesn't exist
This causes the following error:
[@vue/compiler-sfc] Failed to resolve import source ".".
ui/input-group/InputGroupButton.vue
5 | import { inputGroupButtonVariants } from "."
Node version: v23.1.0
Package: [email protected]
OS: Linux
Framework: Vue 3