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

fail to compile #27

Open
wangyi160 opened this issue May 12, 2022 · 1 comment
Open

fail to compile #27

wangyi160 opened this issue May 12, 2022 · 1 comment

Comments

@wangyi160
Copy link

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\Root.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\Root.tsx(70,6)
TS2322: Type 'string[]' is not assignable to type 'string'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\Root.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\Root.tsx(88,6)
TS2322: Type 'string[]' is not assignable to type 'string'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\Root.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\Root.tsx(101,9)
TS2322: Type 'string[]' is not assignable to type 'string'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\Root.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\Root.tsx(148,12)
TS2322: Type '{ children: never[]; key: number; name: string; obj: Readonly & Readonly<{ children?: ReactNode; }>; path: string; pathToTest: string; defaultSettings: any; indent: null; }' is not assignable to type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | ... 8 more ... | "pathToTest">'.
Property 'children' does not exist on type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | ... 8 more ... | "pathToTest">'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx(52,17)
TS2322: Type '{ children: never[]; key: number; settings: any; keys: string[]; }' is not assignable to type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.
Property 'children' does not exist on type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx(77,17)
TS2322: Type '{ children: never[]; key: number; settings: any; keys: string[]; }' is not assignable to type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.
Property 'children' does not exist on type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx(84,17)
TS2322: Type '{ children: never[]; key: number; settings: any; keys: string[]; }' is not assignable to type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.
Property 'children' does not exist on type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx(101,17)
TS2322: Type '{ children: never[]; key: number; settings: any; defaultSettings: any; keys: string[]; }' is not assignable to type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.
Property 'children' does not exist on type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx(118,17)
TS2322: Type '{ children: never[]; key: number; settings: any; keys: string[]; }' is not assignable to type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.
Property 'children' does not exist on type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx(128,7)
TS2322: Type '{ children: never[]; key: number; settings: any; keys: string[]; }' is not assignable to type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.
Property 'children' does not exist on type 'IntrinsicAttributes & Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | ... 7 more ... | "settings">'.

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx(138,17)
TS2739: Type '{ key: number; swfInfosRecordet: any; swfInfosTest: any; }' is missing the following properties from type 'Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | "name" | "key" | "swfTest" | "disabledNodes" | "indent" | "obj" | "nameTest" | "swfInfosRecordet" | "swfInfosTest">': path, name, indent, obj, nameTest

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestInspector.tsx(156,18)
TS2739: Type '{ key: number; errorColor: string; pathToTest: string; frameRecordet: any; frameTest: any; }' is missing the following properties from type 'Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | "name" | "key" | "swfTest" | "disabledNodes" | "indent" | ... 5 more ... | "nameTest">': path, name, indent, obj, nameTest

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestSettings.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestSettings.tsx(63,12)
TS2739: Type '{ value: string; }' is missing the following properties from type 'Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | "name" | "key" | "value" | "editable" | "swfTest" | "disabledNodes" | "indent" | "obj">': path, name, editable, indent, obj

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestSettings.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestSettings.tsx(66,12)
TS2739: Type '{ value: boolean; }' is missing the following properties from type 'Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | "name" | "key" | "value" | "editable" | "swfTest" | "disabledNodes" | "indent" | "obj">': path, name, editable, indent, obj

ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestSettings.tsx
[tsl] ERROR in E:\2022\flash\awayfl-testsuite\src\testsuite\components\TestSettings.tsx(69,12)
TS2739: Type '{ value: number; }' is missing the following properties from type 'Pick<ClassAttributes & ISWFTestProps, "ref" | "path" | "name" | "key" | "value" | "editable" | "swfTest" | "disabledNodes" | "indent" | "obj">': path, name, editable, indent, obj
i 「wdm」: Failed to compile.

@wangyi160
Copy link
Author

I figured out how to solve this. some interfaces need to be updated, one of them is like below

interface ISWFTestProps {
swfInfosRecordet: any,
swfInfosTest: any,
swfTest?: any;
disabledNodes?: StringTMap;
name?: string;
nameTest?: string;
path?: string;
indent?: number;
obj?: any;
clickActive?: Function;
openTest?: Function;
}

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