Closed juliomuhlbauer closed 10 months ago
My is not working too (NextJS on Windows)!
Terminal:
"◇ Failed to download utils. ENOTDIR: not a directory, mkdir 'D:\Bemsoft\Dev\WiseLab\web\wiselab-web\tsconfig.json/./src/lib' PS D:\Bemsoft\Dev\WiseLab\web\wiselab-web> park-ui add button │ ◇ Failed to download Button component ENOTDIR: not a directory, mkdir 'D:\Bemsoft\Dev\WiseLab\web\wiselab-web\tsconfig.json/./src/components/ui'"
====================================== park-ui.json:
"{
"cssFramework": "panda",
"jsFramework": "react",
"importAliases": {
"components": "~/components/ui",
"utils": "~/lib"
},
"useReactServerComponents": true
}"
======================================
tsconfig.json:
"{
"compilerOptions": {
"target": "esnext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"baseUrl": ".",
"plugins": [
{
"name": "next"
}
],
"paths": {
"~/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "postcss.config.cjs"],
"exclude": ["node_modules"]
}"
@cschroeter do you know how to make it work on Windows? Seems like the path is like "tsconfig.json/./src/lib" at the time of creating the folders and components, i think this "tsconfig.json" should not be in there. I guess there's something related to that, but i don't know if i have to do something in my project to make it work or if the CLI itselft adding this on the path yet.
I've just released a fix in the version 0.4.2. Can you test it? I'm not a windows user.
npm install @park-ui/cli -g
should update it if you installed it with npm globally.
Updated, but it didn't work:
Failed to download utils. ENOTDIR: not a directory, mkdir 'F:\code\quintohectare\tsconfig.json/./src/lib'
Please try 0.4.3
and open a new issue if that problem persist.
Thanks! It worked for me.
Error:
My config: