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

[Bug]: Installing auto-form creates invalid code #822

Open
2 tasks
bokub opened this issue Oct 21, 2024 · 0 comments
Open
2 tasks

[Bug]: Installing auto-form creates invalid code #822

bokub opened this issue Oct 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bokub
Copy link

bokub commented Oct 21, 2024

Reproduction

https://stackblitz.com/edit/arnpcd?file=src%2Fcomponents%2Fui%2Fauto-form%2Fdependencies.ts

Describe the bug

installing auto-form (npx shadcn-vue@latest add auto-form) creates the following code, in which toReversed() is the cause of TypeScript errors such as

error TS2551: Property 'toReversed' does not exist on type 'string[]'. Did you mean 'reverse'?

image

N.B: The reproduction link is your own stackblitz, untouched.
N.B 2: The screenshot above comes from the reproduction link

System Info

stackblitz

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@bokub bokub added the bug Something isn't working label Oct 21, 2024
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

1 participant