Skip to content

[bug]: Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components. eslint(react-refresh/only-export-components #8489

@BinLee1226

Description

@BinLee1226

Describe the bug

When Initialize Shadcnui import button component using Vite (version:7.1.7) +react(version:19.1.1)
I'm not sure if it's a version compatibility issue
But the button component displays normally

Image

Affected component/components

button Sidebar...

How to reproduce

https://ui.shadcn.com/docs/installation/vite Scene according to document requirements

Codesandbox/StackBlitz link

No response

Logs

System Info

macos chrome

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions