Skip to content

[bug]: Uncaught SyntaxError: The requested module '/src/components/ui/chart.tsx' does not provide an export named 'ChartConfig' #7841

@heysujal

Description

@heysujal

Describe the bug

When using code for default bar chart from here https://ui.shadcn.com/charts/bar#charts I am getting Uncaught SyntaxError

Currently the keyword type is missing in the import of ChartConfig in the code provided.

Affected component/components

Charts

How to reproduce

  1. Go to https://ui.shadcn.com/charts/bar#charts
  2. Copy code of ChartBarDefault and use it

Codesandbox/StackBlitz link

No response

Logs

Uncaught SyntaxError: The requested module '/src/components/ui/chart.tsx' does not provide an export named 'ChartConfig'

System Info

Browser: Chrome
OS: MacOS

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