-
-
Notifications
You must be signed in to change notification settings - Fork 341
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
CLI: updating data-table
causes stack-overflow
#1489
Comments
So basically what is causing this is a circular dependency for data-table. It is trying to depend on itself and it puts it in an infinite loop:
I am gonna try and fix this right now ideally we would just not ever add |
Thanks for spending time on this. We should be able to detect this by having a cached list of deps we already visited/visiting. But I agree with your statement nice find. |
It may be beneficial to have it in both the CLI and when building the chunks yeah. |
I want to try and fix the build but if that isn't reasonable in a short amount of time we can also just do a CLI quick fix. |
Okay I got it I am gonna also add a fix to the CLI and then I'll have a PR! |
Also if you wouldn't mind updating the name of this issue to instead be:
It doesn't matter if the folder isn't empty or not :) |
data-table
causes stack-overflow
…1490) Co-authored-by: AdrianGonz97 <[email protected]> fixes #1489
Thanks! |
Describe the bug
Add any component (in my example it's data-table), then delete all the files in the folder and trigger
npx shadcn-svelte@next update
Reproduction
npx shadcn-svelte@next update
Logs
Severity
annoyance
The text was updated successfully, but these errors were encountered: