Open keepon-01 opened 7 months ago
问题已经解决,在本地跑ESM的代码,需要将对应包中的/dist/index.css link到index.html中进行渲染,比如@antv/gi-assets-advance包等,才能够正常显示。 目前网站上导出ESM源码中没有index.html,所以我认为ESM中应该生成正确的index.html文件和内容,从而让用户导出到本地进行正确的运行
ESM导出的源码是让集成到react中使用的吧,还有官网的demo,我发现还是有问题的会报如下错误,你遇到了吗?
您好,我在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: 前端展示的样式为: The frontend display style is: 请问这个问题如何解决呢?非常感谢! How can this issue be resolved? Thank you very much!