cschroeter / park-ui

Beautifully designed components built with Ark UI and Panda CSS that work with a variety of JS frameworks.
https://park-ui.com
MIT License
1.73k stars 74 forks source link

CLI does not work with multi tsconfig config files #385

Closed eugenenelou closed 3 months ago

eugenenelou commented 4 months ago

Hi, I encountered a problem when trying to run the CLI command to add components.

It is returning me this error:

┌   Park UI v0.7.1
│
◇  Info ──────────────────────────────────────────────────────────────────────────────╮
┌   Park UI v0.7.1
│
◇  An error occurred
│
◇  Error Details ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                           │
│  (FiberFailure) Error: { readonly compilerOptions: { readonly paths: { readonly [x: string]: ReadonlyArray<string> } } }  │
│  └─ ["compilerOptions"]                                                                                                   │
│     └─ { readonly paths: { readonly [x: string]: ReadonlyArray<string> } }      

I think it's related to my vite tsconfig files that is split in 2:

{
  "files": [],
  "references": [
    {
      "path": "./tsconfig.app.json"
    },
    {
      "path": "./tsconfig.node.json"
    }
  ]
}

If I rename tsconfig.app.json into ts.config.json, the CLI works.

cschroeter commented 3 months ago

Duplicate of https://github.com/cschroeter/park-ui/issues/377