Giter Club home page Giter Club logo

Comments (4)

milesingrams avatar milesingrams commented on June 7, 2024 1

The update for @animxyz/react v0.6.7 makes the peer dependencies allow for anything above React 17:

"peerDependencies": {
    "react": ">= 17",
    "react-dom": ">= 17"
  },

I tested this with a React 18 project and I didn't see a warning. Are you using @animxyz/react v0.6.7?

from animxyz.

apuatcfbd avatar apuatcfbd commented on June 7, 2024

npm i error

Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.2" from @animxyz/[email protected]
npm ERR! node_modules/@animxyz/react
npm ERR!   @animxyz/react@"^0.6.6" from the root project

from animxyz.

milesingrams avatar milesingrams commented on June 7, 2024

I tested with React 18 and it works, I just needed to change the peer dependencies to not throw a warning. Try the latest version and it should work!

from animxyz.

apudiu avatar apudiu commented on June 7, 2024

@milesingrams as you said, it works only when we install peer deps with npm i --legacy-peer-deps, will this increase bundle size?

from animxyz.

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.