Vue Starter Kit error · Issue #56194 · laravel/framework · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Vue Starter Kit error #56194

Open
Open
@igorlopasovsky

Description

@igorlopasovsky

Laravel Version

12.x

PHP Version

N/A

Database Driver & Version

No response

Description

Adding a new shadcn component (e.g. npx shadcn-vue@latest add alert) into Laravel Vue Starter Kit ends in the error:

node:internal/modules/cjs/loader:1212
 const err = new Error(message);
             ^

Error: Cannot find module './compile.js'
Require stack:
- /Users/user/project/node_modules/css-select/lib/index.js
- /Users/user/project/node_modules/node-html-parser/dist/nodes/html.js
- /Users/user/project/node_modules/node-html-parser/dist/index.js
   at Module._resolveFilename (node:internal/modules/cjs/loader:1212:15)
   at Module._load (node:internal/modules/cjs/loader:1043:27)
   at Module.require (node:internal/modules/cjs/loader:1298:19)
   at require (node:internal/modules/helpers:182:18)
   at Object.<anonymous> (/Users/user/project/node_modules/css-select/lib/index.js:12:20)
   at Module._compile (node:internal/modules/cjs/loader:1529:14)
   at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
   at Module.load (node:internal/modules/cjs/loader:1275:32)
   at Module._load (node:internal/modules/cjs/loader:1096:12)
   at Module.require (node:internal/modules/cjs/loader:1298:19) {
 code: 'MODULE_NOT_FOUND',
 requireStack: [
   '/Users/user/project/node_modules/css-select/lib/index.js',
   '/Users/user/project/node_modules/node-html-parser/dist/nodes/html.js',
   '/Users/user/project/node_modules/node-html-parser/dist/index.js'
 ]
}

Node.js v20.19.3

There's already an open issue on the official shadcn-vue repo, it's caused by wrong version of css-select

Steps To Reproduce

  1. Install Laravel Vue Starter Kit
  2. Try to add component, e.g. npx shadcn-vue@latest add alert

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

      TMZ Celebrity News – Breaking Stories, Videos & Gossip

      Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

      Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

      🎥 Watch TMZ Live

      TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.