-
Notifications
You must be signed in to change notification settings - Fork 671
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
vision 前端页面运行不起来。 #108
Comments
试试这个方法 |
作者在2022.09.01更新了相关文档细节: 如果网络不太好,可以先执行下面语句: 容器内的操作: 编译frontend项目: 编译visionPlus项目: 编译vision项目: cd /myapp/vision 然后再执行yarn && yarn build即可 |
ERROR in src/components/FlowEditor/components/EditorBody/components/Setting/index.tsx:247:12
TS2786: 'DatePicker' cannot be used as a JSX component.
Its instance type 'Component<PickerProps, unknown, any> & CommonPickerMethods' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/Users/zhangfeng/Downloads/cube-studio-master/myapp/vision/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'.
Type '{}' is not assignable to type 'ReactNode'.
245 | /> */}
246 | <div style={{ fontWeight: 600, padding: '5px 0px' }}>补录起点
ERROR in src/components/ModuleTree/index.tsx:214:14
TS2786: 'FocusZone' cannot be used as a JSX component.
Its instance type 'FocusZone' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/Users/zhangfeng/Downloads/cube-studio-master/myapp/vision/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'.
212 |
213 | {nodeCount} assets in total
ERROR in src/pages/componentsChilder/InformationDisplayChilder/index.tsx:182:10
TS2786: 'Draggable' cannot be used as a JSX component.
Its instance type 'Draggable' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/Users/zhangfeng/Downloads/cube-studio-master/myapp/vision/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'.
180 | onCancel={onCancel}
181 | modalRender={modal => (
ERROR in src/pages/componentsChilder/PolicyInformation/index.tsx:298:14
TS2786: 'ReactJson' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<ReactJsonViewProps, any, any> | null' is not a valid JSX element.
Type 'Component<ReactJsonViewProps, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<ReactJsonViewProps, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/Users/zhangfeng/Downloads/cube-studio-master/myapp/vision/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'.
296 | {/* <TextArea style={{ display: 'none' }} /> */}
297 |
ERROR in src/pages/componentsChilder/RegisterAuxiliary/index.tsx:147:14
TS2786: 'ReactJson' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<ReactJsonViewProps, any, any> | null' is not a valid JSX element.
145 | {/* <TextArea rows={4} /> */}
146 |
ERROR in src/pages/HeterogeneousPlatform/componentsAdmin/components/EditForm/index.tsx:101:42
TS2786: 'DatePicker' cannot be used as a JSX component.
Its instance type 'Component<PickerProps, unknown, any> & CommonPickerMethods' is not a valid JSX element.
99 | rules={[{ required: true, message: '请选择' + item.label }]}
100 | >
ERROR in src/pages/HeterogeneousPlatform/componentsAdmin/components/EditForm/index.tsx:132:42
TS2786: 'ReactJson' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<ReactJsonViewProps, any, any> | null' is not a valid JSX element.
130 | // rules={[{ required: true, message: '请输入' + item.label }]}
131 | >
ERROR in src/pages/HeterogeneousPlatform/componentsAdmin/components/QueryForm/index.tsx:70:50
TS2786: 'DatePicker' cannot be used as a JSX component.
Its instance type 'Component<PickerProps, unknown, any> & CommonPickerMethods' is not a valid JSX element.
68 | name={item.name}
69 | >
ERROR in src/pages/HeterogeneousPlatform/componentsAdmin/components/QueryForm/index.tsx:101:50
TS2786: 'RangePicker' cannot be used as a JSX component.
Its instance type 'Component<RangePickerProps, unknown, any> & CommonPickerMethods' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/Users/zhangfeng/Downloads/cube-studio-master/myapp/vision/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'.
99 | name={item.name}
100 | >
ERROR in src/pages/HeterogeneousPlatform/componentsAdmin/components/StepsForm/index.tsx:562:30
TS2786: 'ReactJson' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<ReactJsonViewProps, any, any> | null' is not a valid JSX element.
560 |
561 |
ERROR in src/pages/HeterogeneousPlatform/componentsAdmin/components/StepsForm/index.tsx:571:30
TS2786: 'ReactJson' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<ReactJsonViewProps, any, any> | null' is not a valid JSX element.
569 |
570 |
ERROR in src/pages/HeterogeneousPlatform/NationalkaraokeChilder/SceneModeTable/FeatureConfigurationTable.tsx:33:13
TS2786: 'SortableBody' cannot be used as a JSX component.
Its instance type 'Component<any, any, any>' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/Users/zhangfeng/Downloads/cube-studio-master/myapp/vision/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'.
31 |
32 | function DraggableContainer(props: any) {
ERROR in src/pages/HeterogeneousPlatform/NationalkaraokeChilder/SceneModeTable/FeatureConfigurationTable.tsx:39:13
TS2786: 'SortableItem' cannot be used as a JSX component.
Its instance type 'Component<any, any, any>' is not a valid JSX element.
37 | // function findIndex base on Table rowKey props and should always be a right array index
38 | const index = dataSource.findIndex((x: any) => x.index === restProps['data-row-key']);
ERROR in src/pages/HeterogeneousPlatform/NationalkaraokeChilder/SceneModeTable/FeatureConfigurationTableSort.tsx:38:13
TS2786: 'SortableBody' cannot be used as a JSX component.
Its instance type 'Component<any, any, any>' is not a valid JSX element.
36 |
37 | function DraggableContainer(props: any) {
ERROR in src/pages/HeterogeneousPlatform/NationalkaraokeChilder/SceneModeTable/FeatureConfigurationTableSort.tsx:46:13
TS2786: 'SortableItem' cannot be used as a JSX component.
Its instance type 'Component<any, any, any>' is not a valid JSX element.
44 | return x.index === restProps['data-row-key'];
45 | });
The text was updated successfully, but these errors were encountered: