Skip to content

WebAnimation tutorial no longer compiling #497

@tomdye

Description

@tomdye

The zombie web animation tutorial is no longer compiling.
Initial error looks to be because effects now expects a function rather than an array.
There may be further issues.

errors:
/home/simon/Downloads/008_animations-finished/008_animations/finished/zombies/src/widgets/Zombies.ts
[tsl] ERROR in /home/simon/Downloads/008_animations-finished/008_animations/finished/zombies/src/widgets/Zombies.ts(108,20)
      TS2322: Type '({ id: string; effects: { opacity: number; marginTop: string; marginLeft: string; }[]; timing: { ...' is not assignable to type 'AnimationProperties[]'.
  Type '{ id: string; effects: { opacity: number; marginTop: string; marginLeft: string; }[]; timing: { d...' is not assignable to type 'AnimationProperties'.
    Type '{ id: string; effects: { opacity: number; marginTop: string; marginLeft: string; }[]; timing: { d...' is not assignable to type 'AnimationProperties'.
      Types of property 'effects' are incompatible.
        Type '{ opacity: number; marginTop: string; marginLeft: string; }[]' is not assignable to type '(() => AnimationKeyFrame | AnimationKeyFrame[]) | AnimationKeyFrame | AnimationKeyFrame[]'.
          Type '{ opacity: number; marginTop: string; marginLeft: string; }[]' is not assignable to type 'AnimationKeyFrame[]'.
            Type '{ opacity: number; marginTop: string; marginLeft: string; }' is not assignable to type 'AnimationKeyFrame'.
              Object literal may only specify known properties, and 'marginTop' does not exist in type 'AnimationKeyFrame'.

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