Giter VIP home page Giter VIP logo

Comments (6)

zhiqingchen avatar zhiqingchen commented on May 15, 2024 2

Thanks for pointing it out.

from react-native-echarts.

zhiqingchen avatar zhiqingchen commented on May 15, 2024

hi @issaysa , can you submit the demo to Github?

from react-native-echarts.

issaysa avatar issaysa commented on May 15, 2024

@zhiqingchen
Hi, I found out that I used npm not yarn, and that was the problem.
When I use yarn, it works fine. (Sorry I didn't follow the installation process exactly as it says.)
Npm somehow installs zrender 5.4.4 at the same time. Here's the minimal reproduction.
https://github.com/issaysa/react-native-echarts-npm-issue

from react-native-echarts.

zhiqingchen avatar zhiqingchen commented on May 15, 2024

It's true that there is a problem with multiple versions of zrender when using npm. It is recommended to use yarn.

➜  react-native-echarts-npm-issue git:(main) npm explain zrender
[email protected]
node_modules/echarts/node_modules/zrender
  zrender@"5.4.3" from [email protected]
  node_modules/echarts
    echarts@"^5.4.1" from the root project
    peer echarts@"*" from @wuba/[email protected]
    node_modules/@wuba/react-native-echarts
      @wuba/react-native-echarts@"^1.2.1" from the root project

[email protected] peer
node_modules/zrender
  peer zrender@"*" from @wuba/[email protected]
  node_modules/@wuba/react-native-echarts
    @wuba/react-native-echarts@"^1.2.1" from the root project

from react-native-echarts.

zhiqingchen avatar zhiqingchen commented on May 15, 2024

try yarn-deduplicate
Cleans up yarn.lock by removing duplicates.

from react-native-echarts.

zhiqingchen avatar zhiqingchen commented on May 15, 2024

Alternatively, upgrading echarts to 5.4.3 will also fix this issue

from react-native-echarts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.