Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init error if opt out Shadcn #182

Open
ralvs opened this issue Apr 11, 2024 · 0 comments
Open

Init error if opt out Shadcn #182

ralvs opened this issue Apr 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ralvs
Copy link

ralvs commented Apr 11, 2024

Config File

{
  "hasSrc": false,
  "packages": [],
  "preferredPackageManager": "pnpm",
  "t3": false,
  "alias": "@",
  "analytics": true,
  "rootPath": ""
}

Describe the bug
Does not matter the following combination of options, if I choose None for the component library, I get the error.

◐ Checking project for existing packages...                                                                                                                                                                                                                                                                                                                                                                                                                 2:30:14 PM
✔ Successfully searched project and found no additional packages.                                                                                                                                                                                                                                                                                                                                                                                          2:30:14 PM


? Select a component library to use: None
? Select an ORM to use: Prisma
? Please choose your DB type Postgres
? Select an authentication package to use: Clerk
? Select any miscellaneous packages to add: TRPC, Stripe, Resend
⠋ node:internal/fs/utils:921
    throw new ERR_INVALID_ARG_TYPE(
          ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
    at Object.writeFileSync (node:fs:2360:5)
    at replaceFile (file:///Users/renan/Library/Caches/pnpm/dlx/c5dbsceytau2sqvlf5gols4oue/18ecd85c3e4-4018/node_modules/.pnpm/[email protected]/node_modules/kirimase/dist/utils.js:29:8)
    at addPackage (file:///Users/renan/Library/Caches/pnpm/dlx/c5dbsceytau2sqvlf5gols4oue/18ecd85c3e4-4018/node_modules/.pnpm/[email protected]/node_modules/kirimase/dist/commands/add/index.js:103:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.11.1

To Reproduce
Steps to reproduce the behavior:

  1. pnpmx create-next-app@latest
  2. cd project
  3. pnpmx kirimase@latest init
  4. select "None" for the component library
  5. select the follow options
  6. error after select the miscellaneous packages

Desktop (please complete the following information):

  • OS: MacOS Sonoma
  • Browser: does not apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants