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]: Unused Variable Error for actionTypes in TypeScript with ESLint in use-toast.ts #6450

Open
2 tasks done
SainathPoojary opened this issue Jan 25, 2025 · 0 comments · May be fixed by #6451
Open
2 tasks done

[bug]: Unused Variable Error for actionTypes in TypeScript with ESLint in use-toast.ts #6450

SainathPoojary opened this issue Jan 25, 2025 · 0 comments · May be fixed by #6451
Labels
bug Something isn't working

Comments

@SainathPoojary
Copy link

Describe the bug

When using the use-toast.ts file from the shadcn template in a Next.js project, running npm run lint results in the following ESLint error:

Image

Affected component/components

Toast

How to reproduce

Run the following commands to reproduce the issue

npx create-next-app@latest test-nextjs  
pnpm dlx shadcn@latest init -d  
pnpm dlx shadcn@latest add toast  
npm run lint  

Codesandbox/StackBlitz link

No response

Logs

./src/hooks/use-toast.ts
21:7  Error: 'actionTypes' is assigned a value but only used as a type.  @typescript-eslint/no-unused-vars

System Info

OS: macOS
node: v22.13.0

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@SainathPoojary SainathPoojary added the bug Something isn't working label Jan 25, 2025
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

Successfully merging a pull request may close this issue.

1 participant