microsoft / Form-Recognizer-Toolkit

Form Recognizer Toolkit (FRTK) provides a set of components and features to accelerate development based on Form Recognizer service.
MIT License
82 stars 55 forks source link

Failed to access local files #8

Closed mika-data closed 1 year ago

mika-data commented 1 year ago
ERROR in src/view/components/messageModal/messageModal.tsx:39:17

TS2769: No overload matches this call.
  Overload 1 of 2, '(props: IBaseModalProps | Readonly<IBaseModalProps>): Modal', gave the following error.
    Type '{ isOpen: boolean; isLoading: boolean | undefined; header: Element; body: ReactNode; footer: Element; buttonGroup: Element; loadingText: string | undefined; width: number | undefined; onClose: (() => void) | undefined; onDismiss: (() => void) | undefined; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Modal> & Readonly<IBaseModalProps> & Readonly<...>'.
      Property 'isOpen' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Modal> & Readonly<IBaseModalProps> & Readonly<...>'.
  Overload 2 of 2, '(props: IBaseModalProps, context: any): Modal', gave the following error.
    Type '{ isOpen: boolean; isLoading: boolean | undefined; header: Element; body: ReactNode; footer: Element; buttonGroup: Element; loadingText: string | undefined; width: number | undefined; onClose: (() => void) | undefined; onDismiss: (() => void) | undefined; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Modal> & Readonly<IBaseModalProps> & Readonly<...>'.
      Property 'isOpen' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Modal> & Readonly<IBaseModalProps> & Readonly<...>'.
    37 |         return (
    38 |             <Modal
  > 39 |                 isOpen={isOpen}

....

[1]
[1] ERROR in src/view/containers/labelPane/labelPane.tsx:3:61
[1] TS2305: Module '"@fluentui/react"' has no exported member 'Text'.
[1]     1 | import * as React from "react";
[1]     2 | import { connect, ConnectedProps } from "react-redux";
[1]   > 3 | import { Stack, IconButton, DirectionalHint, IButtonStyles, Text } from "@fluentui/react";
[1]       |                                                             ^^^^
[1]     4 |
[1]     5 | import { ApplicationState } from "store";
[1]     6 | import {
[1]
wei-yiting commented 1 year ago

@mika-data The reason for this issue is that there is no data folder added under Server folder. We have resolved this issue by adding an empty data folder.