-
Notifications
You must be signed in to change notification settings - Fork 540
Description
突然间代码提交报错:
`
git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file -
┃ format ❯
Formatted 1 file in 18ms. No fixes applied.
┃ lint ❯
Checked 1 file in 19ms. No fixes applied.
┃ check-types ❯
src/pages/components/animate/views/background/container.tsx(23,65): error TS2322: Type '{ initial: {}; animate: { scale: number[]; opacity: number[]; transition: { duration: number; ease: [] | [number, number, number, number]; }; }; exit: { scale: number[]; opacity: number[]; }; } | { initial: {}; animate: { ...; }; exit: { ...; }; } | ... 55 more ... | undefined' is not assignable to type 'Variants | undefined'.
Type '{ animate: { background: string[]; transition: { duration: number; ease: string | []; }; }; }' is not assignable to type 'Variants'.
Property 'animate' is incompatible with index signature.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'Variant'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'TargetAndTransition'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type '{ transition?: Transition | undefined; transitionEnd?: ResolvedValues | undefined; }'.
Types of property 'transition' are incompatible.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'Transition | undefined'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'TransitionWithValueOverrides'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'ValueAnimationTransition'.
Types of property 'ease' are incompatible.
Type 'string | []' is not assignable to type 'Easing | Easing[] | undefined'.
Type 'string' is not assignable to type 'Easing | Easing[] | undefined'.
src/pages/components/animate/views/background/container.tsx(25,7): error TS2322: Type '{ className: string; } | { className: string; initial: {}; animate: { scale: number[]; opacity: number[]; transition: { duration: number; ease: [] | [number, number, number, number]; }; }; exit: { scale: number[]; opacity: number[]; }; } | ... 55 more ... | { ...; }' is not assignable to type 'IntrinsicAttributes & Omit<HTMLMotionProps<"div">, "ref"> & RefAttributes'.
Type '{ className: string; animate: { background: string[]; transition: { duration: number; ease: string | []; }; }; }' is not assignable to type 'Omit<HTMLMotionProps<"div">, "ref">'.
Types of property 'animate' are incompatible.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'boolean | TargetAndTransition | VariantLabels | LegacyAnimationControls | undefined'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'TargetAndTransition'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type '{ transition?: Transition | undefined; transitionEnd?: ResolvedValues | undefined; }'.
Types of property 'transition' are incompatible.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'Transition | undefined'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'TransitionWithValueOverrides'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'ValueAnimationTransition'.
Types of property 'ease' are incompatible.
Type 'string | []' is not assignable to type 'Easing | Easing[] | undefined'.
Type 'string' is not assignable to type 'Easing | Easing[] | undefined'.
src/pages/components/animate/views/inview/container.tsx(28,27): error TS2322: Type '{ initial: {}; animate: { scale: number[]; opacity: number[]; transition: { duration: number; ease: [] | [number, number, number, number]; }; }; exit: { scale: number[]; opacity: number[]; }; } | { initial: {}; animate: { ...; }; exit: { ...; }; } | ... 55 more ... | undefined' is not assignable to type 'Variants | undefined'.
Type '{ animate: { background: string[]; transition: { duration: number; ease: string | []; }; }; }' is not assignable to type 'Variants'.
Property 'animate' is incompatible with index signature.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'Variant'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'TargetAndTransition'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type '{ transition?: Transition | undefined; transitionEnd?: ResolvedValues | undefined; }'.
Types of property 'transition' are incompatible.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'Transition | undefined'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'TransitionWithValueOverrides'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'ValueAnimationTransition'.
Types of property 'ease' are incompatible.
Type 'string | []' is not assignable to type 'Easing | Easing[] | undefined'.
Type 'string' is not assignable to type 'Easing | Easing[] | undefined'.
src/pages/components/animate/views/inview/container.tsx(46,8): error TS2322: Type '{ initial: {}; animate: { scale: number[]; opacity: number[]; transition: { duration: number; ease: [] | [number, number, number, number]; }; }; exit: { scale: number[]; opacity: number[]; }; } | { initial: {}; animate: { ...; }; exit: { ...; }; } | ... 55 more ... | undefined' is not assignable to type 'Variants | undefined'.
Type '{ animate: { background: string[]; transition: { duration: number; ease: string | []; }; }; }' is not assignable to type 'Variants'.
Property 'animate' is incompatible with index signature.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'Variant'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'TargetAndTransition'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type '{ transition?: Transition | undefined; transitionEnd?: ResolvedValues | undefined; }'.
Types of property 'transition' are incompatible.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'Transition | undefined'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'TransitionWithValueOverrides'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'ValueAnimationTransition'.
Types of property 'ease' are incompatible.
Type 'string | []' is not assignable to type 'Easing | Easing[] | undefined'.
Type 'string' is not assignable to type 'Easing | Easing[] | undefined'.
src/pages/components/animate/views/scroll/container.tsx(21,33): error TS2322: Type '{ initial: {}; animate: { scale: number[]; opacity: number[]; transition: { duration: number; ease: [] | [number, number, number, number]; }; }; exit: { scale: number[]; opacity: number[]; }; } | { initial: {}; animate: { ...; }; exit: { ...; }; } | ... 55 more ... | undefined' is not assignable to type 'Variants | undefined'.
Type '{ animate: { background: string[]; transition: { duration: number; ease: string | []; }; }; }' is not assignable to type 'Variants'.
Property 'animate' is incompatible with index signature.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'Variant'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type 'TargetAndTransition'.
Type '{ background: string[]; transition: { duration: number; ease: string | []; }; }' is not assignable to type '{ transition?: Transition | undefined; transitionEnd?: ResolvedValues | undefined; }'.
Types of property 'transition' are incompatible.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'Transition | undefined'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'TransitionWithValueOverrides'.
Type '{ duration: number; ease: string | []; }' is not assignable to type 'ValueAnimationTransition'.
Types of property 'ease' are incompatible.
Type 'string | []' is not assignable to type 'Easing | Easing[] | undefined'.
Type 'string' is not assignable to type 'Easing | Easing[] | undefined'.
exit status 2
`
(base) PS D:\nodeworkspace\slash-admin> pnpm why framer-motion
Legend: production dependency, optional only, dev only
[email protected] D:\nodeworkspace\slash-admin (PRIVATE)
dependencies:
motion 12.23.24
└── framer-motion 12.23.24
(base) PS D:\nodeworkspace\slash-admin> pnpm why typescript
Legend: production dependency, optional only, dev only
[email protected] D:\nodeworkspace\slash-admin (PRIVATE)
devDependencies:
@commitlint/cli 17.8.1
└─┬ @commitlint/load 17.8.1
├─┬ cosmiconfig 8.3.6
│ └── typescript 5.9.3 peer
├─┬ cosmiconfig-typescript-loader 4.4.0
│ ├─┬ cosmiconfig 8.3.6 peer
│ │ └── typescript 5.9.3 peer
│ ├─┬ ts-node 10.9.2 peer
│ │ └── typescript 5.9.3 peer
│ └── typescript 5.9.3 peer
├─┬ ts-node 10.9.2
│ └── typescript 5.9.3 peer
└── typescript 5.9.3
msw 2.11.5
└── typescript 5.9.3 peer
typescript 5.9.3
vite-tsconfig-paths 5.1.4
└─┬ tsconfck 3.1.6
└── typescript 5.9.3 peer
(base) PS D:\nodeworkspace\slash-admin>