AtlasOfLivingAustralia / ala-mantine

Shared ALA theming & components using the Mantine component library
Mozilla Public License 2.0
1 stars 0 forks source link

Build errors #4

Open adam-collins opened 1 month ago

adam-collins commented 1 month ago

Might be environment specific, but noting anyway.

yarn run build produced errors

node_modules/@atlasoflivingaustralia/ala-mantine/src/components/Footer.tsx:133:21 - error TS2322: Type '{ children: (string | Element)[]; href: string; }' is not assignable to type 'IntrinsicAttributes & TextProps & ComponentProp<"p"> & Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "component" | keyof TextProps> & { ...; }'.
  Property 'href' does not exist on type 'IntrinsicAttributes & TextProps & ComponentProp<"p"> & Omit<Omit<DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "component" | keyof TextProps> & { ...; }'. Did you mean 'ref'?

133               <Text href="communications@ala.org.au">
                        ~~~~

node_modules/@atlasoflivingaustralia/ala-mantine/src/components/IndigenousAcknowledgement.tsx:1:1 - error TS6133: 'React' is declared but its value is never read.

1 import React from "react";
  ~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 2 errors in 2 files.

Errors  Files
     1  node_modules/@atlasoflivingaustralia/ala-mantine/src/components/Footer.tsx:133
     1  node_modules/@atlasoflivingaustralia/ala-mantine/src/components/IndigenousAcknowledgement.tsx:1