antvis / S2

⚡️ A practical visualization library for tabular analysis.
https://s2.antv.antgroup.com
MIT License
1.49k stars 196 forks source link

🐛关于svg的导入错误导致编译不过去 #2990

Open sunchenjun opened 2 hours ago

sunchenjun commented 2 hours ago

🏷 Version

Package Version
@antv/s2 2.0.1
@antv/s2-react 2.0.2
@antv/s2-vue 2.0.1

Sheet Type

🖋 Description

编译时,svg作为react组件部分代码编译不过去

⌨️ Code Snapshots

编译时报错 Uncaught SyntaxError: The requested module '/@fs/C:/Users/admin/Desktop/electron-tos/node_modules/@antv/s2-react-components/esm/components/common/icons/svg/calendar-icon.svg?import' does not provide an export named 'ReactComponent' (at @antv_s2-react-components.js?v=7ab7ed45:4814:10) image

🔗 Reproduce Link

🤔 Steps to Reproduce

编译时报错, 认为这里没有这样的抛出 image

😊 Expected Behavior

编译过去

😅 Current Behavior

💻 System information

Environment Info
System
Browser
github-actions[bot] commented 2 hours ago

你好 @sunchenjun,请编辑你的 issue 标题, 一个言简意赅的 issue 标题可以节省大家的时间, 请不要将标题当做正文, 或者为空。

Hello, @sunchenjun, please edit your issue title. a concise issue title will save everyone time. please do not leave the title as the body or empty.