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

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

Closed
1 of 5 tasks
sunchenjun opened this issue Nov 26, 2024 · 8 comments · Fixed by #2999
Closed
1 of 5 tasks

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

sunchenjun opened this issue Nov 26, 2024 · 8 comments · Fixed by #2999
Labels

Comments

@sunchenjun
Copy link

sunchenjun commented Nov 26, 2024

🏷 Version

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

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 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
Copy link
Contributor

你好 @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.

@sunchenjun sunchenjun changed the title 🐛 🐛关于svg的导入错误导致编译不过去 Nov 26, 2024
@lijinke666
Copy link
Member

近期看一下, 是用到了 @antv/s2-react-components 的什么组件?

@sunchenjun
Copy link
Author

单纯是包编译不过去

@sunchenjun
Copy link
Author

可以自己装一下使用一下,会发现编译不过去,和使用哪个组件无关

@sunchenjun
Copy link
Author

具体可以使用一下Switcher

@wjgogogo wjgogogo added the 🐛 bug 这个是一个 bug label Nov 27, 2024
Copy link
Contributor

你好 @sunchenjun,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志.

Hello, @sunchenjun, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.

@lijinke666
Copy link
Member

🎉 This issue has been resolved in version @antv/s2-vue-v2.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@lijinke666
Copy link
Member

🎉 This issue has been resolved in version @antv/s2-react-components-v2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants