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

🐛 next版本 运行报错 @antv/s2-react 中语法不兼容 #2550

Closed
5 tasks
oliver34 opened this issue Feb 19, 2024 · 3 comments
Closed
5 tasks

🐛 next版本 运行报错 @antv/s2-react 中语法不兼容 #2550

oliver34 opened this issue Feb 19, 2024 · 3 comments
Labels
next 2.0-next 版本的问题

Comments

@oliver34
Copy link

🏷 Version

Package Version
@antv/s2 ^2.0.0-next.12
@antv/s2-react ^2.0.0-next.11

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

@antv/s2-react中非空运算符报错,具体看报错截图
image

⌨️ Code Snapshots

🔗 Reproduce Link

🤔 Steps to Reproduce

😊 Expected Behavior

😅 Current Behavior

💻 System information

Environment Info
System
Browser
@LaraineR
Copy link

我也遇到相同的问题,请问现在解决了吗

@lijinke666
Copy link
Member

lijinke666 commented Feb 22, 2024

S2 使用 vite 打包, 只处理语法转译 不包含任何 polyfill, 这个你可以自己根据你的打包工具配置一下相应的 polyfill 即可.

比如 webpack 使用 core-js 或者 @babel/polyfill, vite 使用 @vitejs/plugin-legacy, 请自行搜索如何使用.

@lijinke666
Copy link
Member

resolved #2587

@lijinke666 lijinke666 added the next 2.0-next 版本的问题 label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next 2.0-next 版本的问题
Projects
None yet
Development

No branches or pull requests

3 participants