Skip to content

Uncaught TypeError: Failed to set an indexed property [0] on 'CSSStyleDeclaration': Indexed property setter is not supported. #176

Closed
@Zsl8

Description

@Zsl8

idk what is happening and why i'm getting this in the BlurText component it seems like the problem is in the springs styles

<p
      ref={ref}
      className={className}
      style={{ display: 'flex', flexWrap: 'wrap' }}
    >
      {springs.map((props, index) => (
        <AnimatedSpan
          key={index}
          style={{
            ...props,
            display: 'inline-block',
            willChange: 'transform, filter, opacity',
          } as unknown as { [key: string]: SpringValue<string | number> }}
        >
          {elements[index] === ' ' ? '\u00A0' : elements[index]}
          {animateBy === 'words' && index < elements.length - 1 && '\u00A0'}
        </AnimatedSpan>
      ))}
    </p>

i tried to debug the problem but didn't get any good results the styles are pefrect and nothing is wrong with them

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions