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

Failed to fetch registry from https://next.shadcn-svelte.com/registry #1368

Open
niemyjski opened this issue Oct 27, 2024 · 6 comments
Open

Comments

@niemyjski
Copy link

Describe the bug

Running npx shadcn-svelte@next update

◇ Which components would you like to update?
│ avatar, badge, button, card, checkbox, command, context-menu, dialog, dropdown-menu, form, input, label, popover, radio-group, select, separator, sheet, skeleton, sonner, switch, table, tabs, utils

◇ Ready to update components? (Make sure you have committed your changes before proceeding!)
│ Yes

└ [CLI Error]: Failed to fetch registry from https://next.shadcn-svelte.com/registry.

Reproduction

npx shadcn-svelte@next update

Logs

No response

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
    Memory: 4.64 GB / 31.91 GB
  Binaries:
    Node: 22.9.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.3 - ~\AppData\Roaming\npm\npm.CMD
    pnpm: 9.12.2 - C:\ProgramData\chocolatey\bin\pnpm.EXE
  Browsers:
    Edge: Chromium (129.0.2792.65)
    Internet Explorer: 11.0.26100.1882

Severity

blocking an upgrade

@niemyjski
Copy link
Author

I only get this when trying to upgrade utils

Which components would you like to update?
│ utils

◇ Ready to update components? (Make sure you have committed your changes before proceeding!)
│ Yes

└ [CLI Error]: Failed to fetch registry from https://next.shadcn-svelte.com/registry.

@niemyjski
Copy link
Author

Something is clearly going wrong tho, because none of my components are actually upgraded when I did them in batches

@huntabyte
Copy link
Owner

huntabyte commented Oct 27, 2024

Ah, I don't think you can update utils like that @niemyjski. The update is for components only atm.

The utils have been dramatically reduced with the removal of svelte transitions in support of CSS/tailwind.

Here's the entire contents of utils if you want to copy paste:

import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs: ClassValue[]) {
	return twMerge(clsx(inputs));
}

@huntabyte huntabyte closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2024
@huntabyte
Copy link
Owner

Just noticed that utils is showing up as something you can update. We'll get this resolved.

@huntabyte huntabyte reopened this Oct 27, 2024
@lecramr
Copy link

lecramr commented Oct 27, 2024

Getting the same Error trying to upgrade:

┌   shadcn-svelte  v1.0.0-next.0 
│
◇  Components to update:
│  accordion, alert, alert-dialog, aspect-ratio, avatar, badge, breadcrumb, button, calendar,
│  card, checkbox, collapsible, command, dialog, drawer, dropdown-menu, form, input,
│  label, pagination, popover, radio-group, scroll-area, select, separator, sheet, sidebar,
│  skeleton, sonner, switch, table, tabs, textarea, tooltip, utils
│
◇  Ready to update components? (Make sure you have committed your changes before proceeding!)
│  Yes
│
└  [CLI Error]: Failed to fetch registry from https://next.shadcn-svelte.com/registry.

https://next.shadcn-svelte.com/registry is also not found. It worked in the morning, pretty sure :D

@huntabyte
Copy link
Owner

Use add do not use update. @lecramr we are removing update because it does the same thing as add.

Repository owner locked as resolved and limited conversation to collaborators Oct 27, 2024
ieedan added a commit to ieedan/shadcn-svelte that referenced this issue Nov 1, 2024
AdrianGonz97 pushed a commit that referenced this issue Nov 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants