Skip to content

Error: The arity of each "output" value must be equal #1772

@einaralex

Description

@einaralex

🐛 Bug Report

I got this error and was having a difficult time finding what was causing it, I found out why.
Leaving this here if someone else stumbles upon this.

My mistake was having the timing without a 0 in front : transition: all .20s linear
Changing it to transition: all 0.20s linear got rid of the error.

Example:

        <Transition
           items={stuffs}
           keys={stuffs.map((_item, i) => i)}
           from={{ opacity: 0, transform: 'scaleY(1)', height: 'auto', transition: 'all 0.09s linear' }} 
           enter={{ opacity: 1, transform: 'scaleY(1)', height: 'auto', transition: 'all 0.13s ease' }}
           leave={{ opacity: 0, transform: 'scaleY(0)', height: 0, transition: 'all 0.13s ease' }}
         >
           {(styles, stuff, attr) => {
             return (
               stuff && (
                 <animated.div key={attr.key} style={styles}>
                  ...
                 </animated.div>
               )
             );
           }}
         </Transition>

Environment

  • react-spring v9.3.0
  • react v17.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions