-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: Cannot find module '@react-spring/rafz' #2173
Comments
Can you share a reproduction of this please |
Sure! Turns out this wasn't a parcel issue, but a Here's the reproduction repo: https://github.com/everdimension/react-spring-raf-repro |
I had the same problem, and I solved it temporarily by manually installing @react-spring/rafz, it looks like the @react-spring/rafz dependency is missing from the @react-spring/shared package |
actually it was introduced at 9.7.0 |
Hi everyone and @everdimension , I am beginner to Open-sourse Contributions and React ecosystem. My Observations: My Proposed Solution: If we are using the "@react-spring/rafz" functionality , we have to explicitly import it. Appreciate the feedback if I have misunderstood the issue. Thanks |
As a workaround for pmndrs/react-spring#2173
@everdimension Could you explain how you determined this? Thanks! |
I additionally ran into this when disabling hoisting within PNPM - what was the |
@sarocu With Yarn 4, adding a explicit dependency in the .yarnrc.yml (I think pnpm has a similar mechanism) should do the trick. # yarnrc.yml
packageExtensions:
"@react-spring/shared@*":
dependencies:
"@react-spring/rafz": "*"
"@react-spring/web@*":
dependencies:
"csstype": "*" |
I also have this problem when running |
Which react-spring target are you using?
@react-spring/web
What version of react-spring are you using?
9.7.3
What's Wrong?
I am having an issue similar to #1559
I am using
parcel
to build my project. I am seeing this type warning:To Reproduce
I can see that
@react-spring/rafz
is not in my node_modules, but in fact it's being used by@react-spring/shared
package:Expected Behaviour
I think
@react-spring/rafz
is expected to be installed along with@react-spring/web
Link to repo
The text was updated successfully, but these errors were encountered: