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

Updating to vite >= 6.0.0 causes error #245

Closed
matteoscaramuzza opened this issue Nov 27, 2024 · 3 comments
Closed

Updating to vite >= 6.0.0 causes error #245

matteoscaramuzza opened this issue Nov 27, 2024 · 3 comments

Comments

@matteoscaramuzza
Copy link

matteoscaramuzza commented Nov 27, 2024

System info

  System:
    OS: macOS 15.1.1
    CPU: (8) arm64 Apple M1
    Memory: 546.20 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.15.1 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.9.0 - /usr/local/bin/npm
    pnpm: 9.12.3 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 131.0.6778.86
    Safari: 18.1.1
  npmPackages:
    @vueuse/motion: 2.2.6 => 2.2.6 
    vite: ^6.0.1 => 6.0.1 
    vue: ^3.5.13 => 3.5.13

Reproduction

When updating vite to >= 6.0.0, when I launch my storybook instance this error is thrown.

TypeError: Cannot destructure property '__extends' of 'import_tslib.default' as it is undefined. at http://localhost:6007/node_modules/.cache/storybook/1c3385a5d25e538d10b518b310c74d3ca2690b6aaffeadccd74da79736171f86/sb-vite/deps/@vueuse_motion.js?v=fe8ad6fc:891:3

Removing this row:

vue.use(MotionPlugin);

the error disappears, so I think the problem is within the library

Describe the bug

Cannot destructure property '__extends' of 'import_tslib.default' as it is undefined.

Additional context

No response

Logs

No response

@matteoscaramuzza
Copy link
Author

I think the problem was fixed by vite latest version (v6.0.3).

@DhtIsCoding
Copy link

it's not fixed. I got the same exception when use echarts

@BobbieGoede
Copy link
Member

@DhtIsCoding
If you could provide a minimal reproduction I can investigate your issue 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants