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

SyntaxError: The requested module '/node_modules/.vite/deps/@antv_g6.js?v=75648447' does not provide an export named 'default' #6485

Open
Sloth9527 opened this issue Nov 7, 2024 · 2 comments

Comments

@Sloth9527
Copy link

Sloth9527 commented Nov 7, 2024

Describe the bug / 问题描述

image

vue3 按照文档引入后 报错

image

image

image

Reproduction link / 重现链接

https://codesandbox.io/p/live/c35cbe0d-2f51-413a-bac4-e27679b440da

Steps to Reproduce the Bug or Issue / 重现步骤

No response

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

Windows

Browser / 浏览器

Chrome

Additional context / 补充说明

No response

@Aarebecca
Copy link
Contributor

没有发现你所描述的问题,Vue 使用 G6 可以参考:https://codesandbox.io/p/sandbox/g6-vue-xzf7pg?file=%2Fsrc%2FApp.vue%3A9%2C1

@Sloth9527
Copy link
Author

没有发现你所描述的问题,Vue 使用 G6 可以参考:https://codesandbox.io/p/sandbox/g6-vue-xzf7pg?file=%2Fsrc%2FApp.vue%3A9%2C1

用vue3却不用vite是真没想到,那就是vite需要怎么配置能支持g6
https://codesandbox.io/p/devbox/goofy-elion-29lqrv

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

No branches or pull requests

2 participants