ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:722:54
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
720 | }}
721 | >
> 722 |
| ^^^^
723 |
724 |
725 | window.open(`/server/${viewServer.id}`, '_blank')}
729 | >
> 730 |
| ^^^^
731 |
732 |
733 |
> 803 |
| ^^^^
804 |
805 |
806 |
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:817:50
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
815 | className={`serversplitter-resource-row mx-1 my-1 relative border-l-4 border-gray-500 bg-gray-700 p-3 rounded-md w-full flex flex-row justify-between items-center`}
816 | >
> 817 |
| ^^^^
818 |
819 |
820 |
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:831:50
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
829 | className={`serversplitter-resource-row mx-1 my-1 relative border-l-4 border-gray-500 bg-gray-700 p-3 rounded-md w-full flex flex-row justify-between items-center`}
830 | >
> 831 |
| ^^^^
832 |
833 |
834 |
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:849:46
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
847 | onClick={() => history.push(`/server/${data.master.id}`)}
848 | >
> 849 |
| ^^^^
850 |
851 |
852 |
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:857:54
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
855 |
856 |
> 857 |
| ^^^^
858 | {data.master.allocations.find((alloc) => alloc.isDefault)?.alias ??
859 | data.master.allocations.find((alloc) => alloc.isDefault)?.ip}
860 | :{data.master.allocations.find((alloc) => alloc.isDefault)?.port}
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:863:54
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
861 |
862 |
> 863 |
| ^^^^
864 | {data.master.limits.cpu === 0 ? 'Infinity' : `${data.master.limits.cpu} %`}
865 |
866 |
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:867:54
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
865 |
866 |
> 867 |
| ^^^^
868 | {data.master.limits.memory === 0
869 | ? 'Infinity'
870 | : bytesToString(data.master.limits.memory * 1024 * 1024)}
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:873:54
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
871 |
872 |
> 873 |
| ^^^^
874 | {data.master.limits.disk === 0
875 | ? 'Infinity'
876 | : bytesToString(data.master.limits.disk * 1024 * 1024)}
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:906:54
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
904 | onClick={() => (parentId ? history.push(`/server/${server.id}`) : setViewServer(server))}
905 | >
> 906 |
| ^^^^
907 |
908 |
909 |
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:914:62
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
912 |
913 |
> 914 |
| ^^^^
915 | {server.allocations.find((alloc) => alloc.isDefault)?.alias ??
916 | server.allocations.find((alloc) => alloc.isDefault)?.ip}
917 | :{server.allocations.find((alloc) => alloc.isDefault)?.port}
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:920:62
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
918 |
919 |
> 920 |
| ^^^^
921 | {server.limits.cpu === 0 ? 'Infinity' : `${server.limits.cpu} %`}
922 |
923 |
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:924:62
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
922 |
923 |
> 924 |
| ^^^^
925 | {server.limits.memory === 0
926 | ? 'Infinity'
927 | : bytesToString(server.limits.memory * 1024 * 1024)}
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:930:62
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
928 |
929 |
> 930 |
| ^^^^
931 | {server.limits.disk === 0
932 | ? 'Infinity'
933 | : bytesToString(server.limits.disk * 1024 * 1024)}
ERROR in resources/scripts/blueprint/extensions/serversplitter/ServerSplitterContainer.tsx:952:42
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
950 | onClick={() => setCreate(true)}
951 | >
> 952 |
| ^^^^
953 |
954 | )}
955 |
ERROR in resources/scripts/blueprint/extensions/subdomains/SubdomainContainer.tsx:200:62
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
198 |
199 |
> 200 |
| ^^^^
201 |
202 |
203 |
ERROR in resources/scripts/blueprint/extensions/versionchanger/VersionChangerContainer.tsx:191:54
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
189 |
190 |
194 |
ERROR in resources/scripts/blueprint/extensions/versionchanger/VersionChangerContainer.tsx:213:66
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
211 |
212 |
> 213 |
| ^^^^
214 |
215 |
216 | )}
ERROR in resources/scripts/blueprint/extensions/versionchanger/VersionChangerContainer.tsx:220:66
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
218 |
219 |
> 220 |
| ^^^^
221 |
222 |
223 | )}
ERROR in resources/scripts/blueprint/extensions/versionchanger/VersionChangerContainer.tsx:282:78
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
280 |
281 |
> 282 |
| ^^^^
283 |
284 |
285 | )}
ERROR in resources/scripts/blueprint/extensions/versionchanger/VersionChangerContainer.tsx:289:78
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
287 |
288 |
> 289 |
| ^^^^
290 |
291 |
292 | )}
ERROR in resources/scripts/blueprint/extensions/versionchanger/VersionChangerContainer.tsx:321:50
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
319 | >
320 |
> 321 |
| ^^^^
322 |
323 |
324 |
ERROR in resources/scripts/blueprint/extensions/versionchanger/VersionChangerContainer.tsx:340:54
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
338 | >
339 |
> 340 |
| ^^^^
341 |
342 |
343 |
ERROR in resources/scripts/components/App.tsx:61:14
TS2786: 'GlobalStylesheet' cannot be used as a JSX component.
Its instance type 'Component, any, any>' is not a valid JSX element.
Property 'refs' is missing in type 'Component, any, any>' but required in type 'ElementClass'.
59 | return (
60 | <>
> 61 |
| ^^^^^^^^^^^^^^^^
62 |
63 |
64 |
ERROR in resources/scripts/components/App.tsx:65:22
TS2786: 'Router' cannot be used as a JSX component.
Its instance type 'Router' is not a valid JSX element.
Property 'refs' is missing in type 'Component' but required in type 'ElementClass'.
63 |
64 |
> 65 |
| ^^^^^^
66 |
67 |
68 |
ERROR in resources/scripts/components/App.tsx:66:26
TS2786: 'Switch' cannot be used as a JSX component.
Its instance type 'Switch' is not a valid JSX element.
64 |
65 |
> 66 |
| ^^^^^^
67 |
68 |
69 |
ERROR in resources/scripts/components/App.tsx:67:30
TS2786: 'Route' cannot be used as a JSX component.
Its instance type 'Route<{}, "/auth">' is not a valid JSX element.
Property 'refs' is missing in type 'Route<{}, "/auth">' but required in type 'ElementClass'.
65 |
66 |
> 67 |
| ^^^^^
68 |
69 |
70 |
ERROR in resources/scripts/components/App.tsx:84:30
TS2786: 'Route' cannot be used as a JSX component.
Its instance type 'Route<{}, "*">' is not a valid JSX element.
82 |
83 |
> 84 |
| ^^^^^
85 |
86 |
87 |
ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:76:50
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
74 | css={[tw`bg-neutral-600 flex items-center`, index > 0 && tw`mt-2`]}
75 | >
> 76 |
| ^^^^
77 |
78 |
{key.description}
79 |
ERROR in resources/scripts/components/dashboard/AccountApiContainer.tsx:89:41
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
87 |
ERROR in resources/scripts/components/dashboard/activity/ActivityLogContainer.tsx:8:50
TS7016: Could not find a declaration file for module '@heroicons/react/solid'. '/var/www/pterodactyl/node_modules/@heroicons/react/solid/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/heroicons__react` if it exists or add a new declaration (.d.ts) file containing `declare module '@heroicons/react/solid';`
6 | import { Link } from 'react-router-dom';
7 | import PaginationFooter from '@/components/elements/table/PaginationFooter';
> 8 | import { DesktopComputerIcon, XCircleIcon } from '@heroicons/react/solid';
| ^^^^^^^^^^^^^^^^^^^^^^^^
9 | import Spinner from '@/components/elements/Spinner';
10 | import { styles as btnStyles } from '@/components/elements/button/index';
11 | import classNames from 'classnames';
ERROR in resources/scripts/components/dashboard/search/SearchContainer.tsx:24:38
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
22 |
23 |
setVisible(true)}>
> 24 |
| ^^^^
25 |
26 |
27 | >
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:101:38
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
99 |
100 |
> 101 |
| ^^^^
102 |
103 |
104 |
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:118:38
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
116 |
117 |
> 118 |
| ^^^^
119 |
120 | {server.allocations
121 | .filter((alloc) => alloc.isDefault)
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:159:39
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
157 |
158 |
> 159 |
| ^^^^
160 |
161 | {stats.cpuUsagePercent.toFixed(2)} %
162 |
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:168:39
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
166 |
167 |
> 168 |
| ^^^^
169 |
170 | {bytesToString(stats.memoryUsageInBytes)}
171 |
ERROR in resources/scripts/components/dashboard/ServerRow.tsx:177:39
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
175 |
176 |
> 177 |
| ^^^^
178 |
179 | {bytesToString(stats.diskUsageInBytes)}
180 |
ERROR in resources/scripts/components/dashboard/ssh/AccountSSHContainer.tsx:50:50
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
48 | css={[tw`bg-neutral-600 flex space-x-4 items-center`, index > 0 && tw`mt-2`]}
49 | >
> 50 |
| ^^^^
51 |
52 |
{key.name}
53 |
SHA256:{key.fingerprint}
ERROR in resources/scripts/components/dashboard/ssh/DeleteSSHKeyButton.tsx:40:21
TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'.
38 |
ERROR in resources/scripts/components/elements/activity/ActivityLogEntry.tsx:8:46
TS7016: Could not find a declaration file for module '@heroicons/react/solid'. '/var/www/pterodactyl/node_modules/@heroicons/react/solid/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/heroicons__react` if it exists or add a new declaration (.d.ts) file containing `declare module '@heroicons/react/solid';`
6 | import { ActivityLog } from '@definitions/user';
7 | import ActivityLogMetaButton from '@/components/elements/activity/ActivityLogMetaButton';
> 8 | import { FolderOpenIcon, TerminalIcon } from '@heroicons/react/solid';
| ^^^^^^^^^^^^^^^^^^^^^^^^
9 | import classNames from 'classnames';
10 | import style from './style.module.css';
11 | import Avatar from '@/components/Avatar';
ERROR in resources/scripts/components/elements/activity/ActivityLogMetaButton.tsx:2:35
TS7016: Could not find a declaration file for module '@heroicons/react/outline'. '/var/www/pterodactyl/node_modules/@heroicons/react/outline/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/heroicons__react` if it exists or add a new declaration (.d.ts) file containing `declare module '@heroicons/react/outline';`
1 | import React, { useState } from 'react';
> 2 | import { ClipboardListIcon } from '@heroicons/react/outline';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | import { Dialog } from '@/components/elements/dialog';
4 | import { Button } from '@/components/elements/button/index';
5 |
ERROR in resources/scripts/components/elements/alert/Alert.tsx:1:56
TS7016: Could not find a declaration file for module '@heroicons/react/outline'. '/var/www/pterodactyl/node_modules/@heroicons/react/outline/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/heroicons__react` if it exists or add a new declaration (.d.ts) file containing `declare module '@heroicons/react/outline';`
> 1 | import { ExclamationIcon, ShieldExclamationIcon } from '@heroicons/react/outline';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2 | import React from 'react';
3 | import classNames from 'classnames';
4 |
ERROR in resources/scripts/components/elements/AuthenticatedRoute.tsx:9:10
TS2786: 'Route' cannot be used as a JSX component.
Its instance type 'Route<{}, string>' is not a valid JSX element.
7 |
8 | return (
> 9 |
12 | isAuthenticated ? children :
ERROR in resources/scripts/components/elements/AuthenticatedRoute.tsx:11:13
TS2769: No overload matches this call.
Overload 1 of 2, '(props: RouteProps & OmitNative<{}, keyof RouteProps>): Route<...>', gave the following error.
Type '({ location }: RouteComponentProps<{ [x: string]: string | undefined; }, StaticContext, unknown>) => string | number | bigint | boolean | Element | ... 4 more ... | undefined' is not assignable to type '(props: RouteComponentProps<{ [x: string]: string | undefined; }, StaticContext, unknown>) => ReactNode'.
Type 'string | number | bigint | boolean | Element | Iterable | Promise | ((props: RouteChildrenProps<{ [x: string]: string | undefined; }, unknown>) => ReactNode) | null | undefined' is not assignable to type 'ReactNode'.
Type '(props: RouteChildrenProps<{ [x: string]: string | undefined; }, unknown>) => ReactNode' is not assignable to type 'ReactNode'.
Overload 2 of 2, '(props: RouteProps & OmitNative<{}, keyof RouteProps>, context: any): Route<...>', gave the following error.
Type '({ location }: RouteComponentProps<{ [x: string]: string | undefined; }, StaticContext, unknown>) => string | number | bigint | boolean | Element | ... 4 more ... | undefined' is not assignable to type '(props: RouteComponentProps<{ [x: string]: string | undefined; }, StaticContext, unknown>) => ReactNode'.
9 | 11 | render={({ location }) =>
| ^^^^^^
12 | isAuthenticated ? children :
13 | }
14 | />
ERROR in resources/scripts/components/elements/AuthenticatedRoute.tsx:12:47
TS2786: 'Redirect' cannot be used as a JSX component.
Its instance type 'Redirect' is not a valid JSX element.
Property 'refs' is missing in type 'Component' but required in type 'ElementClass'.
10 | {...props}
11 | render={({ location }) =>
> 12 | isAuthenticated ? children :
| ^^^^^^^^
13 | }
14 | />
15 | );
ERROR in resources/scripts/components/elements/Button.tsx:111:52
TS2769: No overload matches this call.
Overload 1 of 3, '(props: { children?: ReactNode; form?: string | undefined; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 285 more ...; value?: string | ... 2 more ... | undefined; } & { ...; } & { ...; }): ReactElement<...>', gave the following error.
Type '{ children?: ((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined; ... 275 more ...; as: string; }' is not assignable to type '{ children?: ReactNode; form?: string | undefined; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 285 more ...; value?: string | ... 2 more ... | undefined; }'.
Types of property 'children' are incompatible.
Type '((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined' is not assignable to type 'ReactNode'.
Type '{}' is not assignable to type 'ReactNode'.
Overload 2 of 3, '(props: { children?: ReactNode; form?: string | undefined; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 285 more ...; value?: string | ... 2 more ... | undefined; } & { ...; } & { ...; }): ReactElement<...>', gave the following error.
Type 'string' is not assignable to type 'undefined'.
Overload 3 of 3, '(props: StyledComponentPropsWithAs<"a", any, Omit, never, "a", "a">): ReactElement, never, "a", "a">, string | JSXElementConstructor<...>>', gave the following error.
Type '{ children?: ((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined; ... 275 more ...; as: "a"; }' is not assignable to type '{ children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 284 more ...; referrerPolicy?: HTMLAttributeReferrerPolicy | undefined; }'.
Types of property 'children' are incompatible.
Type '((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined' is not assignable to type 'ReactNode'.
109 | type LinkProps = Omit & Props;
110 |
> 111 | const LinkButton: React.FC = (props) => ;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112 |
113 | export { LinkButton, ButtonStyle };
114 | export default Button;
ERROR in resources/scripts/components/elements/Checkbox.tsx:25:18
TS2769: No overload matches this call.
Overload 1 of 3, '(props: { children?: ReactNode; form?: string | undefined; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; pattern?: string | undefined; ... 305 more ...; readOnly?: boolean | undefined; } & { ...; } & { ...; }): ReactElement<...>', gave the following error.
Type '{ className: string | undefined; type: "checkbox"; checked: boolean; onClick: () => Promise>; onChange: (e: ChangeEvent) => void; ... 288 more ...; name: string; }' is not assignable to type '{ children?: ReactNode; form?: string | undefined; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; pattern?: string | undefined; ... 305 more ...; readOnly?: boolean | undefined; }'.
Types of property 'children' are incompatible.
Type 'ReactI18NextChild | Iterable' is not assignable to type 'ReactNode'.
Type '{}' is not assignable to type 'ReactNode'.
Overload 2 of 3, '(props: { children?: ReactNode; form?: string | undefined; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; pattern?: string | undefined; ... 305 more ...; readOnly?: boolean | undefined; } & { ...; } & { ...; }): ReactElement<...>', gave the following error.
Type '{ className: string | undefined; type: "checkbox"; checked: boolean; onClick: () => Promise>; onChange: (e: ChangeEvent) => void; ... 288 more ...; name: string; }' is not assignable to type '{ children?: ReactNode; form?: string | undefined; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; pattern?: string | undefined; ... 305 more ...; readOnly?: boolean | undefined; }'.
Types of property 'children' are incompatible.
Type 'ReactI18NextChild | Iterable' is not assignable to type 'ReactNode'.
Overload 3 of 3, '(props: StyledComponentPropsWithAs<"input", any, Props, never, "input", "input">): ReactElement, string | JSXElementConstructor<...>>', gave the following error.
Type '{ className: string | undefined; type: "checkbox"; checked: boolean; onClick: () => Promise>; onChange: (e: ChangeEvent) => void; ... 288 more ...; name: string; }' is not assignable to type '{ children?: ReactNode; form?: string | undefined; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; pattern?: string | undefined; ... 305 more ...; readOnly?: boolean | undefined; }'.
Types of property 'children' are incompatible.
Type 'ReactI18NextChild | Iterable' is not assignable to type 'ReactNode'.
23 |
24 | return (
> 25 | ) => void; }' is not assignable to parameter of type 'Partial & Attributes'.
Object literal may only specify known properties, and 'className' does not exist in type 'Partial & Attributes'.
33 | ? React.Children.only(children)
34 | : React.cloneElement(React.Children.only(children), {
> 35 | className: classNames(children.props.className || '', 'cursor-pointer'),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36 | onClick: (e: React.MouseEvent) => {
37 | copy(String(text));
38 | setCopied(true);
ERROR in resources/scripts/components/elements/dialog/Dialog.tsx:4:23
TS7016: Could not find a declaration file for module '@heroicons/react/solid'. '/var/www/pterodactyl/node_modules/@heroicons/react/solid/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/heroicons__react` if it exists or add a new declaration (.d.ts) file containing `declare module '@heroicons/react/solid';`
2 | import { Dialog as HDialog } from '@headlessui/react';
3 | import { Button } from '@/components/elements/button/index';
> 4 | import { XIcon } from '@heroicons/react/solid';
| ^^^^^^^^^^^^^^^^^^^^^^^^
5 | import { AnimatePresence, motion } from 'framer-motion';
6 | import { DialogContext, IconPosition, RenderDialogProps, styles } from './';
7 |
ERROR in resources/scripts/components/elements/dialog/DialogIcon.tsx:2:90
TS7016: Could not find a declaration file for module '@heroicons/react/outline'. '/var/www/pterodactyl/node_modules/@heroicons/react/outline/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/heroicons__react` if it exists or add a new declaration (.d.ts) file containing `declare module '@heroicons/react/outline';`
1 | import React, { useContext, useEffect } from 'react';
> 2 | import { CheckIcon, ExclamationIcon, InformationCircleIcon, ShieldExclamationIcon } from '@heroicons/react/outline';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
3 | import classNames from 'classnames';
4 | import { DialogContext, DialogIconProps, styles } from './';
5 |
ERROR in resources/scripts/components/elements/dropdown/Dropdown.tsx:36:56
TS2322: Type 'ForwardedRef<_internal_ComponentMenu & { Button: _internal_ComponentMenuButton; Items: _internal_ComponentMenuItems; Item: _internal_ComponentMenuItem; }>' is not assignable to type 'Ref | undefined'.
Type '(instance: (_internal_ComponentMenu & { Button: _internal_ComponentMenuButton; Items: _internal_ComponentMenuItems; Item: _internal_ComponentMenuItem; }) | null) => void' is not assignable to type 'Ref | undefined'. Type '(instance: (_internal_ComponentMenu & { Button: _internal_ComponentMenuButton; Items: _internal_ComponentMenuItems; Item: _internal_ComponentMenuItem; }) | null) => void' is not assignable to type '(instance: HTMLElement | null) => void'.
Types of parameters 'instance' and 'instance' are incompatible.
Type 'HTMLElement | null' is not assignable to type '(_internal_ComponentMenu & { Button: _internal_ComponentMenuButton; Items: _internal_ComponentMenuItems; Item: _internal_ComponentMenuItem; }) | null'.
Type 'HTMLElement' is not assignable to type '_internal_ComponentMenu & { Button: _internal_ComponentMenuButton; Items: _internal_ComponentMenuItems; Item: _internal_ComponentMenuItem; }'.
Property 'displayName' is missing in type 'HTMLElement' but required in type '_internal_ComponentMenu'.
34 |
35 | return (
> 36 |