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

sv migrate svelte-5 #250

Open
Jojoshua opened this issue Oct 29, 2024 · 7 comments
Open

sv migrate svelte-5 #250

Jojoshua opened this issue Oct 29, 2024 · 7 comments

Comments

@Jojoshua
Copy link

npx sv migrate svelte-5 yields..
You must specify one of the following migrations: package, routes, svelte-4

@brunnerh
Copy link
Member

brunnerh commented Oct 29, 2024

That doesn't look right, I get these options:

You must specify one of the following migrations: package, routes, self-closing-tags, svelte-4, svelte-5, sveltekit-2

What version is the package?

There also is this note:

If you expected this to work, try re-running the command with the latest svelte-migrate version:
npx svelte-migrate@latest <...>

So maybe svelte-migrate was there already but outdated.

@Jojoshua
Copy link
Author

Npx sv - v gives me 0.5.11

@Jojoshua
Copy link
Author

Pretty sure I did use svelte-migrate last time to upgrade to svelte 4. Does it still exist?

@brunnerh
Copy link
Member

brunnerh commented Oct 29, 2024

If it already exists because you used it before, you probably need to upgrade it separately first.

@Jojoshua
Copy link
Author

If it already exists because you used it before, you probably need to upgrade it separately first.

Yeah I bet you're right. I will double check, maybe a cache problem. Thanks!

@manuel3108 manuel3108 reopened this Oct 29, 2024
@manuel3108
Copy link
Member

This indeed looks like a cache problem. We were debating if we should use @latest while initiating svelte-migrate. I failed finding that conversation, but looks like we have the answer here.

@benmccann
Copy link
Member

hmm. we already invoke it with @latest:

const cmdArgs = ['svelte-migrate@latest', ...args];

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

4 participants