apache / apache/echarts

[Bug] Uncaught ReferenceError: process is not defined in svelte3.55.0

Open
#19,806 3 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.0

### Link to Minimal Reproduction

No Response

### Steps to Reproduce

1. add echarts with npm
`npm i echarts`
2. use echarts in svelte
`import * as echarts from "echarts"`
3. in my component i get error
![image](https://github.com/apache/echarts/assets/103107905/0f944649-97ca-44d2-994d-e28da2575242)

### Current Behavior

![image](https://github.com/apache/echarts/assets/103107905/a487910a-44d6-46fc-bbcd-903d637722c8)

### Expected Behavior

show echarts

### Environment

```markdown
- OS:Windows 11
- Browser: Chrome@123.0.6312.106
- Framework: Svelte@3.55.0
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.