cschroeter / park-ui

Beautifully designed components built on Ark UI that work for the JS and CSS frameworks of your choice.
https://park-ui.com
MIT License
1.4k stars 55 forks source link

Cannot install any components with the CLI on Mac CLI #304

Open jeffscottward opened 3 weeks ago

jeffscottward commented 3 weeks ago

Despite having the exact right setup following first PandaCSS w/ Next.js docs instructions found here: https://panda-css.com/docs/installation/nextjs

And then following the ParkUI docs exactly as found here https://park-ui.com/docs/panda/overview/getting-started

I still get an error with the CLI npx @park-ui/cli init

Where it runs just fine until you get to Failed to download utils. Path resolution failed. Please make sure that there is a tsconfig.json file with baseUrl and paths configured.

Inspite of having a tsconfig that looks like so.

{
  "compilerOptions": {
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "strict": true,
    "noEmit": true,
    "esModuleInterop": true,
    "module": "esnext",
    "moduleResolution": "bundler",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "jsx": "preserve",
    "incremental": true,
    "plugins": [
      {
        "name": "next"
      }
    ],
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  },
  "include": [
    "src",
    "styled-system",
    "next-env.d.ts",
    "**/*.ts",
    "**/*.tsx",
    ".next/types/**/*.ts"
  ],
  "exclude": ["node_modules"]
}

which includes the baseURL and paths mentioned.

Thoughts?

jeffscottward commented 3 weeks ago
 "paths": {
      "~/*": ["./src/*"]
    }

is the fix as outline in the Path Aliases section.

dont use @ use ~

The Panda bootup may need fixing