nutui-bingo
nutui-bingo copied to clipboard
代码有bug?
src/packages/utils/create/component.ts:14:13 - error TS2352: Conversion of type '<PropsOptions extends Readonly<ComponentPropsOptions<Data>>, Props extends Readonly<ExtractPropTypes<PropsOptions>>>(_component: { ...; }) => (props: Record<...> & {}) => any' to type '{ <Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType<Record<string, any>> = {}>(setup: (props: Props, ctx: SetupContext<E, S>) => RenderFunction | Promise<...>, options?: (Pick<...> & { ...; }) | undefined): (props: Props & EmitsToProps<...>) => any; <Pro...' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Type '(props: Record<string, any> & {}) => any' is not comparable to type 'DefineComponent<any, any, any, any, any, any, any, any, any, PublicProps, Readonly
14 create: function < ~~~~~~~~~~ 15 PropsOptions extends Readonly<ComponentPropsOptions>, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... 32 return defineComponent(_component as any); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 33 } as typeof defineComponent, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 1 error in src/packages/utils/create/component.ts:14
我运行也有这个问题,请问你解决了吗
他们在taro里面用了html标签,全是报错的,只有h5能用