Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebAnimation tutorial no longer compiling #497

Open
tomdye opened this issue Mar 18, 2019 · 0 comments
Open

WebAnimation tutorial no longer compiling #497

tomdye opened this issue Mar 18, 2019 · 0 comments

Comments

@tomdye
Copy link
Member

tomdye commented Mar 18, 2019

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'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant