Giter Site home page Giter Site logo

Comments (26)

morellodev avatar morellodev commented on May 23, 2024 9

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.

aaronsarnat avatar aaronsarnat commented on May 23, 2024 7

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.

tills13 avatar tills13 commented on May 23, 2024 7

I have taken the liberty of submitting an issue to the Emotion repo and I'll have a PR there soon as well.

emotion-js/emotion#2423

from react-awesome-reveal.

EliotSlevin avatar EliotSlevin commented on May 23, 2024 4

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.

meaghanbass avatar meaghanbass commented on May 23, 2024 1

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.

meaghanbass avatar meaghanbass commented on May 23, 2024 1

@dennismorello Ahh i figured it out. thanks!!

from react-awesome-reveal.

caseymhunt avatar caseymhunt commented on May 23, 2024 1

from react-awesome-reveal.

tills13 avatar tills13 commented on May 23, 2024 1

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.

cargallo avatar cargallo commented on May 23, 2024

Tnx @dennismorello! I will do that πŸ‘

from react-awesome-reveal.

morellodev avatar morellodev commented on May 23, 2024

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.

Allwithyou999 avatar Allwithyou999 commented on May 23, 2024

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.

morellodev avatar morellodev commented on May 23, 2024

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.

Allwithyou999 avatar Allwithyou999 commented on May 23, 2024

from react-awesome-reveal.

morellodev avatar morellodev commented on May 23, 2024

But why would you want to use nested animation components?

from react-awesome-reveal.

Allwithyou999 avatar Allwithyou999 commented on May 23, 2024

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.

marcelscruz avatar marcelscruz commented on May 23, 2024

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.

cargallo avatar cargallo commented on May 23, 2024

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.

marcelscruz avatar marcelscruz commented on May 23, 2024

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.

cargallo avatar cargallo commented on May 23, 2024

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.

marcelscruz avatar marcelscruz commented on May 23, 2024

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.

cabello avatar cabello commented on May 23, 2024

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.

aaronsarnat avatar aaronsarnat commented on May 23, 2024

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.

bentong95923 avatar bentong95923 commented on May 23, 2024

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.

aaronsarnat avatar aaronsarnat commented on May 23, 2024

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.

papuruth avatar papuruth commented on May 23, 2024

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.

Damjanose avatar Damjanose commented on May 23, 2024

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)

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.