Skip to content

TypeError: tslib.default is undefined #311

Description

@rabbldating

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions