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

@antv/x6-vue-shape为什么没有index.cjs.js文件,我需要用commonjs形式引入 #4012

Closed
bighhhh opened this issue Nov 6, 2023 · 2 comments
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions

Comments

@bighhhh
Copy link

bighhhh commented Nov 6, 2023

问题描述

我的项目vue使用commonjs形式引入的,现在使用@antv/x6-vue-shape包后编译组件有问题,vue-demi报错vue.util.warn找不到util,vue-demi使用commonjs文件其中时util是从default中获取的

重现链接

重现步骤

不兼容commonjs形式引入vue

预期行为

需要index.cjs.js文件

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@NewByVector
Copy link
Contributor

从 lib 目录引入就是 cjs。

@NewByVector NewByVector added the type: discussion 讨论 Usage questions, guidance, and other discussions label Nov 7, 2023
@bighhhh
Copy link
Author

bighhhh commented Nov 14, 2023

从 lib 目录引入就是 cjs。

好的,谢谢

@bighhhh bighhhh closed this as completed Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: discussion 讨论 Usage questions, guidance, and other discussions
Projects
None yet
Development

No branches or pull requests

2 participants