You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This warnings won't resolved by adding the dependencies at the root. In fact the above warnings come with the peer dependencies being installed at root, as you can reproduce in reproduction below.
This is not an error of yarn (berry), the manager just makes the problem visible.
Your Example Website or App
reproduction with blank project see below ~1minute or video
Steps to Reproduce the Bug or Issue
That is a general problem, but depending on package manager you might not see it, hence use yarn berry
mkdir testcdtest
yarn set version berry
yarn add @nextui-org/react react react-dom framer-motion
Expected behavior
No peer dependency warnings.
I explain why this is a problem and you should care:
First and basic: warnings should not be stacked up and ignored or they lose any meaning. I have dozens of libraries added with peer dependencies, none generating peer warnings. This was a bit different just a year or two ago, but many libraries have fixed that by now.
One example of those fixed is the remix-run library (issue fixed). I've reported this problem early there, initially not picked up, there were some other issues later on which could be traced back to this problem.
The problem and solution:
Here @nextui-org/button and card depend on @nextui-org/ripple. ripple depends (peer) on framer-motion. Button and card need to either 1. provide framer-motion as dependency or 2. add framer-motion as peer, basically delegating it further up to the next library that uses it.
Screenshots or Videos
peer-nextui.webm
ps. Issue also using nodeLinker: node-modules (so you can ignore the PnP experimental warning)
Operating System Version
linux
Browser
Chrome
The text was updated successfully, but these errors were encountered:
NextUI Version
2.1.13
Describe the bug
The following warnings (yarn berry):

This warnings won't resolved by adding the dependencies at the root. In fact the above warnings come with the peer dependencies being installed at root, as you can reproduce in
reproduction
below.This is not an error of yarn (berry), the manager just makes the problem visible.
Your Example Website or App
reproduction with blank project see below ~1minute or video
Steps to Reproduce the Bug or Issue
That is a general problem, but depending on package manager you might not see it, hence use yarn berry
Expected behavior
No peer dependency warnings.
I explain why this is a problem and you should care:
First and basic: warnings should not be stacked up and ignored or they lose any meaning. I have dozens of libraries added with peer dependencies, none generating peer warnings. This was a bit different just a year or two ago, but many libraries have fixed that by now.
One example of those fixed is the remix-run library (issue fixed). I've reported this problem early there, initially not picked up, there were some other issues later on which could be traced back to this problem.
The

problem
and solution:Here
@nextui-org/button
andcard
depend on@nextui-org/ripple
.ripple
depends (peer) onframer-motion
.Button
andcard
need to either 1. provideframer-motion
as dependency or 2. addframer-motion
as peer, basically delegating it further up to the next library that uses it.Screenshots or Videos
peer-nextui.webm
ps. Issue also using nodeLinker: node-modules (so you can ignore the PnP experimental warning)
Operating System Version
linux
Browser
Chrome
The text was updated successfully, but these errors were encountered: