Skip to content

[Bug]: Error importing chart components in vuejs 3 #1343

@Lizandro12

Description

@Lizandro12

Reproduction

run npx shadcn-vue add chart-bar or other command to import charts on CLI for reproduce the error

Describe the bug

When importing the charts into

Image

the vuejs 3 project I receive an error.

System Info

System:
    OS: Windows 11 10.0.26100
    CPU: (8) x64 Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
    Memory: 874.72 MB / 7.85 GB
  Binaries:
    Node: 23.4.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 11.4.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (138.0.3351.83)
    Internet Explorer: 11.0.26100.1882

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests

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