antvis / antvis/S2

🐛使用cdn方式 复制当前页数据,偶发process报错

Open
#3,355 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.7k
Forks
220
PR merge metrics
No merged PRs in 30d

Description

### 🏷 S2 Version / S2 版本

s2@2.7.2.min.js

### 💻 Sheet Type / 表格类型

- [ ] PivotSheet
- [x] TableSheet
- [ ] PivotChartSheet
- [ ] GridAnalysisSheet
- [ ] StrategySheet
- [ ] EditableSheet

### 🖋 Describe the bug / 问题描述

//报错
Uncaught ReferenceError: process is not defined
at o (s2@2.7.2.min.js:63:107001)

### ⌨️ Code Snapshots / 代码片段

```typescript
//调用
copyToClipboard(data, true);

```

### 🔗 Reproduction link / 复现链接

_No response_

### 📋 Steps to Reproduce the Bug or Issue / 重现步骤

大数据量的列表复制偶发问题

### 😊 Expected Behavior / 期望行为

修复

### 😅 Current Behavior / 当前行为

_No response_

### 💻 OS / 操作系统

- [ ] macOS
- [ ] Windows
- [ ] Linux
- [ ] Others / 其他

### 🌏 Browser / 浏览器

- [ ] Chrome
- [ ] Edge
- [ ] Firefox
- [ ] Safari (Limited support / 有限支持)
- [ ] IE (Nonsupport / 不支持)
- [ ] Others / 其他

### 🪓 Check that you have performed the following steps / 请确认你已完成以下自查

- [ ] 我已经主动搜索过问题列表 (I have actively searched the Issues list)
- [ ] 我已经主动搜索过讨论区 (I have actively searched the Discussions list)
- [ ] 我已经仔细阅读过官方文档 (I have read the Official Document)
- [ ] 我确认这是一个 BUG,而不是如何使用的问题 (I confirm this is a BUG, not a usage question)
- [ ] 我已经提供了有效的复现链接或严格的操作步骤 (I have provided a valid reproduction link or strict descriptive steps)

Contributor guide

Open the contributing guide

Research direction

Start at the copyToClipboard(data, true) call and reproduce the intermittent failure with a large TableSheet dataset using the CDN build s2@2.7.2.min.js. Trace the generated bundle around s2@2.7.2.min.js:63:107001, then verify that copying large lists through the CDN no longer raises "process is not defined".

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.