Skip to content

Vue Starter Kit component issue #56851

@fuzzyhope1502

Description

@fuzzyhope1502

Laravel Version

12.24.0

PHP Version

8.4.11

Database Driver & Version

SQlite

Description

Hello,
Couldn't find a specific repo for the Vue starter kit itself, but I wanted to report some issues it's having.

Upon using the latest Laravel installer, and installing a fresh Laravel project with the Vue Starter Kit, it will work fine, but if you attempt to add any new components with the commands from "shadcn-vue", it will throw an error. E.g;

bunx --bun shadcn-vue@latest add pin-input

Something went wrong. Please check the error below for more details.                                                                                                                
If the problem persists, please open an issue on GitHub.                                                                                                                            
Invalid configuration found in components.json. 

After some testing, I've discovered this is due to the "iconLibrary" property inside of components.json that comes standard with the Laravel Starter Kit. Removing this makes everything work again. I've been unable to find much documentation on this "iconLibrary" variable, but upon removing it there doesn't seem to be any changes in starter kit functionality.

Maybe this is a config option that was removed from shadcn-vue when they moved from Radix to RekaUI, but I still think this is not really a great experience for new Laravel devs as their first point of contact will be the Starter Kits and I don't think it will encourage them to stick around if they are met with undocumented errors straight out of the box.

Steps To Reproduce

  1. laravel new test-project --vue
  2. bunx --bun shadcn-vue@latest add pin-input (or any component from shadcn-vue.)
  3. Remove "iconLibrary" property from components.json and error goes away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions