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

Production Environment Error: Cannot read properties of undefined (reading 'Graph') #6512

Closed
hls-1992 opened this issue Nov 13, 2024 · 4 comments

Comments

@hls-1992
Copy link

Describe the bug / 问题描述

In DEV environment, everything is ok.
In PROD environmnet, Cannot read properties of undefined (reading 'Graph')

Reproduction link / 重现链接

No response

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

Just vue3 + vite
import { Graph } from '@antv/g6'

G6 Version / G6 版本

🆕 5.x

Operating System / 操作系统

macOS

Browser / 浏览器

Chrome

Additional context / 补充说明

No response

@hls-1992
Copy link
Author

vite 2.x version

@Aarebecca
Copy link
Contributor

I created a vue app and used G6, and the built product worked without the problem you described. You can provide more information.

@hls-1992
Copy link
Author

I created a vue app and used G6, and the built product worked without the problem you described. You can provide more information.

I think it is caused by the lower version vite(2.6)

@hls-1992
Copy link
Author

I created a vue app and used G6, and the built product worked without the problem you described. You can provide more information.

In vite 4.x version, everything is ok

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