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

G6VP中导出的ESM源码,本地运行之后前端组件全部铺开展示(The ESM source code exported from G6VP, after running locally, displays all frontend components expanded) #579

Open
keepon-01 opened this issue Jan 25, 2024 · 2 comments

Comments

@keepon-01
Copy link

keepon-01 commented Jan 25, 2024

您好,我在G6VP网站导出的ESM源码,我添加了index.html文件,本地运行之后发现,前端所有的组件全部摊开展示,而且很多交互是无效的。index.html文件的内容为:
Hello, I exported the ESM source code from the G6VP website, and after adding an index.html file and running it locally, I found that all frontend components are displayed expanded, and many interactions are not working. The content of the index.html file is:
image
前端展示的样式为:
The frontend display style is:
image
请问这个问题如何解决呢?非常感谢!
How can this issue be resolved? Thank you very much!

@keepon-01 keepon-01 mentioned this issue Feb 5, 2024
@keepon-01
Copy link
Author

问题已经解决,在本地跑ESM的代码,需要将对应包中的/dist/index.css link到index.html中进行渲染,比如@antv/gi-assets-advance包等,才能够正常显示。
目前网站上导出ESM源码中没有index.html,所以我认为ESM中应该生成正确的index.html文件和内容,从而让用户导出到本地进行正确的运行

@404area
Copy link

404area commented Mar 5, 2024

ESM导出的源码是让集成到react中使用的吧,还有官网的demo,我发现还是有问题的会报如下错误,你遇到了吗?
image

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