Skip to content

build error #1

Description

@sadnanalmanir

fairscape-lite-web@0.1.0 build
tsc -b || true && vite build

src/components/EvidenceGraph/EvidenceGraphViewer.tsx:286:43 - error TS2339: Property 'replace' does not exist on type 'string | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor> | Iterable | ReactPortal | Promise<...>'.
Property 'replace' does not exist on type 'number'.

286 const typeClass = edge-${edge.label?.replace(/\s+/g, "-")};
~~~~~~~

src/components/EvidenceGraph/EvidenceGraphViewer.tsx:387:9 - error TS2322: Type '{ dataService: GraphDataService | null; supportData: any; onShowRelationshipPath: Dispatch<SetStateAction<string[] | null>>; }' is not assignable to type 'IntrinsicAttributes & SupportingElementsComponentProps'.
Property 'supportData' does not exist on type 'IntrinsicAttributes & SupportingElementsComponentProps'.

387 supportData={supportData}
~~~~~~~~~~~

src/components/EvidenceGraph/EvidenceNode.tsx:202:3 - error TS2339: Property 'className' does not exist on type 'NodeProps'.

202 className = "", // className prop is passed by React Flow for styling
~~~~~~~~~

src/components/EvidenceGraph/EvidenceNode.tsx:207:50 - error TS2345: Argument of type '{} | RawGraphEntity' is not assignable to parameter of type 'RawGraphEntity | undefined'.
Type '{}' is missing the following properties from type 'RawGraphEntity': "@id", "@type"

207 const sourceProps = getDisplayableProperties(data._sourceData);
~~~~~~~~~~~~~~~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:188:12 - error TS2304: Cannot find name 'SupportData'.

188 results: SupportData;
~~~~~~~~~~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:212:24 - error TS2304: Cannot find name 'SupportingElement'.

212 const outputElement: SupportingElement = {
~~~~~~~~~~~~~~~~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:221:29 - error TS7006: Parameter 'el' implicitly has an 'any' type.

221 !results.datasets.some((el) => el["@id"] === node["@id"])
~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:226:29 - error TS7006: Parameter 'el' implicitly has an 'any' type.

226 !results.software.some((el) => el["@id"] === node["@id"])
~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:231:33 - error TS7006: Parameter 'el' implicitly has an 'any' type.

231 !results.computations.some((el) => el["@id"] === node["@id"])
~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:236:28 - error TS7006: Parameter 'el' implicitly has an 'any' type.

236 !results.samples.some((el) => el["@id"] === node["@id"])
~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:241:32 - error TS7006: Parameter 'el' implicitly has an 'any' type.

241 !results.experiments.some((el) => el["@id"] === node["@id"])
~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:246:32 - error TS7006: Parameter 'el' implicitly has an 'any' type.

246 !results.instruments.some((el) => el["@id"] === node["@id"])
~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:273:14 - error TS2304: Cannot find name 'RawGraphData'.

273 graphData: RawGraphData | null,
~~~~~~~~~~~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:274:4 - error TS2304: Cannot find name 'SupportData'.

274 ): SupportData | null => {
~~~~~~~~~~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:278:18 - error TS2304: Cannot find name 'SupportData'.

278 const results: SupportData = {
~~~~~~~~~~~

src/components/EvidenceGraph/SupportingElementsComponent.tsx:307:56 - error TS18046: 'arr' is of type 'unknown'.

307 const hasData = Object.values(results).some((arr) => arr.length > 0);
~~~

src/components/EvidenceGraph/utils/graphUtils.ts:13:52 - error TS2339: Property 'env' does not exist on type 'ImportMeta'.

13 const feUrl = window.location.origin + import.meta.env.BASE_URL + "view/";
~~~

Found 17 errors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions