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

ENOENT: no such file or directory, open '[...]/create-t3-turbo/packages/ui/unused.css' #1292

Open
galer7 opened this issue Jan 26, 2025 · 0 comments

Comments

@galer7
Copy link

galer7 commented Jan 26, 2025

Issue

This happens when selecting all components in the ui-add command. It's probably caused by one/some of the component because for example when selecting only accordion this doesn't occur.

> create-t3-turbo@ ui-add /Users/galer7/p/create-t3-turbo
> turbo run ui-add

╭──────────────────────────────────────────────────────────────────────────╮
│                                                                          │
│                     Update available v2.3.3 ≫ v2.3.4                     │
│    Changelog: https://github.com/vercel/turborepo/releases/tag/v2.3.4    │
│             Run "npx @turbo/codemod@latest update" to update             │
│                                                                          │
│          Follow @turborepo for updates: https://x.com/turborepo          │
╰──────────────────────────────────────────────────────────────────────────╯
turbo 2.3.3

• Packages in scope: @acme/api, @acme/auth, @acme/auth-proxy, @acme/db, @acme/eslint-config, @acme/expo, @acme/github, @acme/nextjs, @acme/prettier-config, @acme/tailwind-config, @acme/tsconfig, @acme/ui, @acme/val
idators                                                                                                                                                                                                               • Running ui-add in 13 packages
• Remote caching disabled
┌ @acme/ui#ui-add > cache bypass, force executing 92a41119f0ef99dc 
│ 
│ > @acme/[email protected] ui-add /Users/galer7/p/create-t3-turbo/packages/ui
│ > pnpm dlx shadcn@latest add && prettier src --write --list-different
│ 
│ ✔ Which components would you like to add? › accordion, alert, alert-dialog, aspect-ratio, avatar, badge, breadcrumb, button, calendar, card, carousel, chart, checkbox, collapsible, command, con
│ text-menu, dialog, drawer, dropdown-menu, form, hover-card, input, input-otp, label, menubar, navigation-menu, pagination, popover, progress, radio-group, resizable, scroll-area, select, separa
│ tor, sheet, sidebar, skeleton, slider, sonner, switch, table, tabs, textarea, toast, toggle, toggle-group, tooltip
│ ✔ Checking registry.
│ ✔ Updating ../../tooling/tailwind/web.ts
│ ⠋ Updating unused.css
│ Something went wrong. Please check the error below for more details.
│ If the problem persists, please open an issue on GitHub.
│ 
│ ENOENT: no such file or directory, open '/Users/galer7/p/create-t3-turbo/packages/ui/unused.css'
│ 
│  ELIFECYCLE  Command failed with exit code 1.
│ command finished with error: command (/Users/galer7/p/create-t3-turbo/packages/ui) /usr/local/bin/pnpm run ui-add exited (1)
└────>
@acme/ui#ui-add: command (/Users/galer7/p/create-t3-turbo/packages/ui) /usr/local/bin/pnpm run ui-add exited (1)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    9.206s 
Failed:    @acme/ui#ui-add

 ERROR  run failed: command  exited (1)
 ELIFECYCLE  Command failed with exit code 1.

Fix

Create file packages/ui/unused.css

Version

8589f6f

@galer7 galer7 changed the title ENOENT: no such file or directory, open '/Users/galer7/p/create-t3-turbo/packages/ui/unused.css' ENOENT: no such file or directory, open '[...]/create-t3-turbo/packages/ui/unused.css' Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant