wuba / wuba/react-native-echarts
TypeError: tslib.default is undefined
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 967
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Blank Expo 57 project with react-native-echarts fails rendering the chart on RN web with TypeError: tslib.default is undefined with the example from the README. Full reproduction: https://github.com/rabbldating/testrnecharts
To Reproduce
npx create-expo-app@latest --template blank-typescript
cd project
npx expo install @wuba/react-native-echarts echarts react-native-svg
npx expo install react-dom react-native-web
Then add example chart from https://github.com/wuba/react-native-echarts#example
Then:
npx expo start --web
The following error shows up and the chart does not render:
$ npx expo start --web
[...]
Web ERROR [TypeError: tslib.default is undefined] @http://localhost:8081/index.ts.bundle?platform=web&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.routerRoot=app&unstable_transformProfile=hermes-stable:30890:7
Full example: https://github.com/rabbldating/testrnecharts
Desktop (please complete the following information):
- OS: Linux
- Browser: Firefox
- Version: 151
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure using the blank Expo TypeScript project, the README example, and the listed Expo web commands; the provided testrnecharts reproduction is the first reference to inspect. Trace the web bundle error for tslib.default and verify that the example chart renders successfully in Firefox without the TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100