apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
59.69k stars 19.58k forks source link

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

Open SeolSongWoo opened 3 months ago

SeolSongWoo commented 3 months ago

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

Current Behavior

image

Expected Behavior

show echarts

Environment

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

Any additional comments?

No response

MatthiasMert commented 3 months ago

This seems to work fine: https://stackblitz.com/edit/vitejs-vite-ewakjk?file=src%2FApp.svelte