Comments (26)
Hi, unfortunately this is an issue with the latest version of Emotion. As soon as this will be fixed by the Emotion team, I will update React Awesome Reveal.
As a temporary fix, please use the version 3.4.0
π¦
from react-awesome-reveal.
I was just looking through issues on Emotion's repo. I didn't find any obvious open issues that pertain to this particular problem we're having.
Has anyone here thought about opening an issue with Emotion in hopes that it might put this bug on their radar if it isn't already? I would, except I don't really understand the underlying problem or how to describe our issue in a way that would be relevant to Emotion.
I only found out about Emotion a few minutes ago, shortly after I found out about this library... which looks awesome, by the way!
from react-awesome-reveal.
I have taken the liberty of submitting an issue to the Emotion repo and I'll have a PR there soon as well.
from react-awesome-reveal.
Any updates on this?
I also don't see any issues like this in emotions issues log, I'm just not sure if it's actually an issue caused by emotion - wouldn't it be showing up in other emotion powered projects?
I'm personally only seeing it as a dev only issue, but it can't be ruled out that it won't cause errors in surprising mysterious way. React seems pretty certain it's a bad idea.
It definitely seems to be caused by nesting animations, but nesting animations sounds like a feature you'd totally want?
from react-awesome-reveal.
I've had the same issue and tried using 3.4.0, but am still getting the error. I was using Fade around Slide. I've tried removing Fade to see if that would help, but am still getting the error. Any thoughts?
from react-awesome-reveal.
@dennismorello Ahh i figured it out. thanks!!
from react-awesome-reveal.
from react-awesome-reveal.
FYI everyone, this is just a dev warning and not an actual error. The warning doesn't show up in my production build, ...
To be clear, this is because it's a class of error that's suppressed by React in production mode, not because it's "just a dev warning".
To everyone else, I assume your code looks something like this?
<Element css={someFlag && css`...`} />
The issue is with this line in Emotion, which also hints at a solution:
<Element css={[someFlag && css`...`]} />
from react-awesome-reveal.
Tnx @dennismorello! I will do that π
from react-awesome-reveal.
I've had the same issue and tried using 3.4.0, but am still getting the error. I was using Fade around Slide. I've tried removing Fade to see if that would help, but am still getting the error. Any thoughts?
Why are you putting <Slide>
as child of <Fade>
? You can just set the direction
prop to <Fade>
and get rid of <Slide>
π
The React error is not caused by react-awesome-reveal
itself, so I do not have control over it. I am releasing v3.5.2 where I updated the @emotion/react
dependency β the one responsible of the error. Hope it fixes the issue π€
from react-awesome-reveal.
I had the same issue with v3.7.0.
<Slide triggerOnce duration={200}>
<SubNavigation>
<Slide cascade duration={500}>
{navData.map((subNav, index) => (
<div key={`sub-nav-${index}`}>
<SubNavItem>
{subNav.title}
</SubNavItem>
</div>
))}
</Slide>
</SubNavigation>
</Slide>
from react-awesome-reveal.
I had the same issue with v3.7.0.
<Slide triggerOnce duration={200}> <Slide cascade duration={500}> <h1>test1</h1> <h1>test2</h1> </Slide> </Slide>
Why are you wrapping the <h1>
elements twice with <Slide>
?
from react-awesome-reveal.
from react-awesome-reveal.
But why would you want to use nested animation components?
from react-awesome-reveal.
I updated the actual code I am using. Firstly, the sub-navigation section is shown with the slide effect, and then, the items of the submenu will be shown with the cascade slide in the section.
from react-awesome-reveal.
Hi Dennis,
Do you have any updates on that, or what worked for you to get rid of the error?
I tried with the following versions, but still get the message:
- 3.4.0
- 3.5.2
- 3.7.0
I understand this is caused by Emotion, just trying to see if there's a workaround for it.
Thanks!
from react-awesome-reveal.
Hi Dennis,
Do you have any updates on that, or what worked for you to get rid of the error?
I tried with the following versions, but still get the message:
- 3.4.0
- 3.5.2
- 3.7.0
I understand this is caused by Emotion, just trying to see if there's a workaround for it.
Thanks!
If you downgrade to 3.4.0 that should work. At least I did that and it worked for me.
from react-awesome-reveal.
If you downgrade to 3.4.0 that should work. At least I did that and it worked for me.
Unfortunately, it didn't. :/
But thanks for suggesting it.
from react-awesome-reveal.
If you downgrade to 3.4.0 that should work. At least I did that and it worked for me.
Unfortunately, it didn't. :/
But thanks for suggesting it.
Then, check that you are not using nested animations.
from react-awesome-reveal.
Then, check that you are not using nested animations.
Yep, I was. Removing nested animations combined with downgrading to 3.4.0 did the trick.
Thanks!
from react-awesome-reveal.
I am facing the same issue, my app is on Emotion 10, react-awesome-reveal 3.5 and up is on Emotion 11, I see the same errors, downgraded to v3.4.0 for now.
On related matters I tried to upgrade Emotion to 11, but Typescript support changed and Theming and other things proved harder than expected, I explored for a day but will leave that for the future.
from react-awesome-reveal.
FYI everyone, this is just a dev warning and not an actual error. The warning doesn't show up in my production build, so I consider this at worst a minor annoyance during dev time. I'm not going to worry about it anymore, nor am I going to roll back to a previous version. So far it's working great on prod with no errors (or warnings) which is all I care about.
from react-awesome-reveal.
Any updates on this?
I also don't see any issues like this in emotions issues log, I'm just not sure if it's actually an issue caused by emotion - wouldn't it be showing up in other emotion powered projects?
I'm personally only seeing it as a dev only issue, but it can't be ruled out that it won't cause errors in surprising mysterious way. React seems pretty certain it's a bad idea.
It definitely seems to be caused by nesting animations, but nesting animations sounds like a feature you'd totally want?
I am also feeling the same. I feel like there is something wrong with the code that uses the emotions js in the react-awesome-reveal plugin. It will be great if there is someone who can review it to tackle the problems.
from react-awesome-reveal.
To be clear, this is because it's a class of error that's suppressed by React in production mode, not because it's "just a dev warning".
Point taken @tills13. Though I'd still emphasize that it's presented as a "warning" and not an "error." In any case, thanks for doing a deep dive into the emotion code to identify the culprit.
from react-awesome-reveal.
I would like to mention a warning too about @emotion/core package. I have separate @emotion/core package installed in my project and since this package is using @emotion too therefore react logs warning into console. Is there any way to suppress the warning?
from react-awesome-reveal.
Hi!
I'm at version 11.9.0 and i'm still getting the same error. Is this fixed yet?
from react-awesome-reveal.
Related Issues (20)
- Running "npm run storybook" fails with issues in react-awesome-reveal HOT 2
- Position Fixed don't work in children elements HOT 2
- Flickering transition when upgrading to 4.2.0 HOT 2
- Bug with slide direction right HOT 2
- Slide flickers when is entering the viewport HOT 12
- react awesome reveal does not appear on large screen HOT 1
- Periodic disappearance of fixed components
- Delay doesn't work with fragments
- Add onExit prop
- How do I make Fade responsive? HOT 2
- default spacing settings on effect element usage
- Question: is there a way to reduce the distance when using fade animation direction up? HOT 1
- Error 504: Outdated Dep HOT 2
- Add support for prefers-reduced-motion HOT 2
- Animated elements doesn't rendering in development environment HOT 16
- Server Side Rendering not worked HOT 1
- Typescript child type? HOT 2
- Animations not working when I bump the project to Next 14 HOT 3
- Does not work on nextjs 14 HOT 1
- Add 'as' prop to pass element to render
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-awesome-reveal.