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 | | ^^^ 37 | {Button} 38 | 3 | import { ChevronDownIcon } from '@heroicons/react/solid'; | ^^^^^^^^^^^^^^^^^^^^^^^^ 4 | import { Menu } from '@headlessui/react'; 5 | import React from 'react'; 6 | ERROR in resources/scripts/components/elements/ErrorBoundary.tsx:28:27 TS2322: Type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition'. Types of property 'iconName' are incompatible. Type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-common-types/index").IconName' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types/index").IconName'. Type '"acquisitions-incorporated"' is not assignable to type 'IconName'. 26 |
27 |
> 28 | | ^^^^ 29 |

30 | An error was encountered by the application while rendering this view. Try refreshing the page. 31 |

ERROR in resources/scripts/components/elements/Field.tsx:26:22 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 '{ isLight: boolean; hasError: boolean; children?: ((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined; ... 290 more ...; id: string | undefined; }' 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 '((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined' 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 '{ isLight: boolean; hasError: boolean; children?: ((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined; ... 290 more ...; id: string | undefined; }' 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 '((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined' 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 '{ isLight: boolean; hasError: boolean; children?: ((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined; ... 290 more ...; id: string | undefined; }' 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 '((string | number | boolean | {} | ReactElement> | ReactNodeArray | ReactPortal | Iterable<...>) & (boolean | ... 2 more ... | ReactPortal)) | null | undefined' is not assignable to type 'ReactNode'. 24 | 25 | )} > 26 | ( > 21 | | ^^^^^^^^^ 22 | 23 |
24 | ERROR in resources/scripts/components/elements/InputSpinner.tsx:21:6 TS2769: No overload matches this call. This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided. This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided. This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided. 19 | 20 | const InputSpinner = ({ visible, children }: { visible: boolean; children: React.ReactNode }) => ( > 21 | | ^^^^^^^^^ 22 | 23 |
24 | ERROR in resources/scripts/components/elements/PageContentBlock.tsx:28:18 TS2746: This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided. 26 | <> 27 | > 28 | | ^^^^^^^^^^^^^^^^ 29 | {showFlashKey && } 30 | {children} 31 | ERROR in resources/scripts/components/elements/PageContentBlock.tsx:28:18 TS2769: No overload matches this call. This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided. This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided. This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided. 26 | <> 27 | > 28 | | ^^^^^^^^^^^^^^^^ 29 | {showFlashKey && } 30 | {children} 31 | ERROR in resources/scripts/components/elements/Pagination.tsx:53:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 51 | {pages[0] > 1 && !isFirstPage && ( 52 | onPageSelect(1)}> > 53 | | ^^^^ 54 | 55 | )} 56 | {pages.map((i) => ( ERROR in resources/scripts/components/elements/Pagination.tsx:68:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 66 | {pages[4] < pagination.totalPages && !isLastPage && ( 67 | onPageSelect(pagination.totalPages)}> > 68 | | ^^^^ 69 | 70 | )} 71 |
ERROR in resources/scripts/components/elements/PermissionRoute.tsx:13:6 TS2786: 'Route' cannot be used as a JSX component. Its instance type 'Route<{}, string>' is not a valid JSX element. 11 | 12 | export default ({ permission, children, ...props }: Props) => ( > 13 | | ^^^^^ 14 | {!permission ? ( 15 | children 16 | ) : ( ERROR in resources/scripts/components/elements/ScreenBlock.tsx:55:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. Type 'IconDefinition' is not assignable to type 'IconLookup'. Types of property 'iconName' are incompatible. Type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-common-types/index").IconName' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types/index").IconName'. 53 | className={onRetry ? 'hover:spin' : undefined} 54 | > > 55 | | ^^^^ 56 | 57 |
58 | )} ERROR in resources/scripts/components/elements/Spinner.tsx:47:14 TS2769: No overload matches this call. Overload 1 of 3, '(props: { children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; } & { ...; } & { ...; }): ReactElement<...>', gave the following error. Type '{ size?: SpinnerSize | undefined; isBlue?: boolean | undefined; children?: ReactNode; }' is not assignable to type '{ children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; }'. Types of property 'children' are incompatible. Type 'React.ReactNode' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@types/react-router/node_modules/@types/react/ts5.0/index").ReactNode'. Overload 2 of 3, '(props: { children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; } & { ...; } & { ...; }): ReactElement<...>', gave the following error. Type '{ size?: SpinnerSize | undefined; isBlue?: boolean | undefined; children?: ReactNode; }' is not assignable to type '{ children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; }'. Types of property 'children' are incompatible. Type 'React.ReactNode' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@types/react-router/node_modules/@types/react/ts5.0/index").ReactNode'. Overload 3 of 3, '(props: StyledComponentPropsWithAs<"div", any, Props, never, "div", "div">): ReactElement, string | JSXElementConstructor<...>>', gave the following error. Type '{ size?: SpinnerSize | undefined; isBlue?: boolean | undefined; children?: ReactNode; }' is not assignable to type '{ children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; }'. Types of property 'children' are incompatible. Type 'React.ReactNode' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@types/react-router/node_modules/@types/react/ts5.0/index").ReactNode'. 45 | centered ? ( 46 |
> 47 | | ^^^^^^^^^^^^^^^^ 48 |
49 | ) : ( 50 | ERROR in resources/scripts/components/elements/Spinner.tsx:50:10 TS2769: No overload matches this call. Overload 1 of 3, '(props: { children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; } & { ...; } & { ...; }): ReactElement<...>', gave the following error. Type '{ size?: SpinnerSize | undefined; isBlue?: boolean | undefined; children?: ReactNode; }' is not assignable to type '{ children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; }'. Types of property 'children' are incompatible. Type 'React.ReactNode' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@types/react-router/node_modules/@types/react/ts5.0/index").ReactNode'. Type '{}' is not assignable to type 'ReactNode'. Overload 2 of 3, '(props: { children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; } & { ...; } & { ...; }): ReactElement<...>', gave the following error. Type '{ size?: SpinnerSize | undefined; isBlue?: boolean | undefined; children?: ReactNode; }' is not assignable to type '{ children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; }'. Types of property 'children' are incompatible. Type 'React.ReactNode' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@types/react-router/node_modules/@types/react/ts5.0/index").ReactNode'. Overload 3 of 3, '(props: StyledComponentPropsWithAs<"div", any, Props, never, "div", "div">): ReactElement, string | JSXElementConstructor<...>>', gave the following error. Type '{ size?: SpinnerSize | undefined; isBlue?: boolean | undefined; children?: ReactNode; }' is not assignable to type '{ children?: ReactNode; slot?: string | undefined; style?: CSSProperties | undefined; title?: string | undefined; ref?: Ref | undefined; ... 277 more ...; isBlue?: boolean | undefined; }'. Types of property 'children' are incompatible. Type 'React.ReactNode' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@types/react-router/node_modules/@types/react/ts5.0/index").ReactNode'. 48 |
49 | ) : ( > 50 | | ^^^^^^^^^^^^^^^^ 51 | ); 52 | Spinner.displayName = 'Spinner'; 53 | ERROR in resources/scripts/components/elements/Switch.tsx:54:14 TS2746: This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided. 52 | return ( 53 |
> 54 | | ^^^^^^^^^^^^^^^ 55 | {children || ( 56 | > 54 | | ^^^^^^^^^^^^^^^ 55 | {children || ( 56 | 5 | import { ChevronDoubleLeftIcon, ChevronDoubleRightIcon } from '@heroicons/react/solid'; | ^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 | interface Props { 8 | className?: string; ERROR in resources/scripts/components/elements/Translate.tsx:4:19 TS2707: Generic type 'TransProps' requires between 1 and 4 type arguments. 2 | import { Trans, TransProps, useTranslation } from 'react-i18next'; 3 | > 4 | type Props = Omit; | ^^^^^^^^^^ 5 | 6 | export default ({ ns, children, ...props }: Props) => { 7 | const { t } = useTranslation(ns); ERROR in resources/scripts/components/elements/Translate.tsx:7:19 TS2589: Type instantiation is excessively deep and possibly infinite. 5 | 6 | export default ({ ns, children, ...props }: Props) => { > 7 | const { t } = useTranslation(ns); | ^^^^^^^^^^^^^^^^^^ 8 | 9 | return ( 10 | ERROR in resources/scripts/components/NavigationBar.tsx:71:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 69 | 70 | > 71 | | ^^^^ 72 | 73 | 74 | {rootAdmin && ( ERROR in resources/scripts/components/NavigationBar.tsx:77:50 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 75 | 76 | > 77 | | ^^^^ 78 | 79 | 80 | )} ERROR in resources/scripts/components/NavigationBar.tsx:91:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 89 | 90 | 93 | 94 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:174:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 172 | css={tw`text-gray-200 transition-colors duration-150 hover:text-gray-100 p-2`} 173 | > > 174 | | ^^^^ 175 | 176 | )} 177 | > ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:181:61 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 179 | 180 | > 181 | | ^^^^ 182 | Download 183 | 184 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:187:61 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 185 | 186 | setModal('restore')}> > 187 | | ^^^^ 188 | Restore 189 | 190 | ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:196:41 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 194 | 196 | icon={backup.isLocked ? faUnlock : faLock} | ^^^^ 197 | css={tw`text-xs mr-2`} 198 | /> 199 | {backup.isLocked ? 'Unlock' : 'Lock'} ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:203:69 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 201 | {!backup.isLocked && ( 202 | setModal('delete')}> > 203 | | ^^^^ 204 | Delete 205 | 206 | )} ERROR in resources/scripts/components/server/backups/BackupContextMenu.tsx:217:38 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 215 | css={tw`text-gray-200 transition-colors duration-150 hover:text-gray-100 p-2`} 216 | > > 217 | | ^^^^ 218 | 219 | )} 220 | ERROR in resources/scripts/components/server/backups/BackupRow.tsx:56:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 54 | {backup.completedAt !== null ? ( 55 | backup.isLocked ? ( > 56 | | ^^^^ 57 | ) : ( 58 | 59 | ) ERROR in resources/scripts/components/server/backups/BackupRow.tsx:58:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 56 | 57 | ) : ( > 58 | | ^^^^ 59 | ) 60 | ) : ( 61 | ERROR in resources/scripts/components/server/backups/BackupRow.tsx:93:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 91 | {!backup.completedAt ? ( 92 |
> 93 | | ^^^^ 94 |
95 | ) : ( 96 | ERROR in resources/scripts/components/server/console/chart.ts:74:5 TS2322: Type 'Omit & ElementChartOptions<"line"> & PluginChartOptions<"line"> & DatasetChartOptions<"line"> & ScaleChartOptions<...> & LineControllerChartOptions>, { ...; }], Readonly<...>, Readonly<...>>, "__proto__">' is not assignable to type '_DeepPartialObject & ElementChartOptions<"line"> & PluginChartOptions<"line"> & DatasetChartOptions<"line"> & ScaleChartOptions<...> & LineControllerChartOptions>'. Types of property 'scales' are incompatible. Type '{ [x: string]: { type?: "time" | undefined; title?: { display?: boolean | undefined; align?: "center" | "end" | "start" | undefined; text?: string | (string | undefined)[] | undefined; color?: string | ... 2 more ... | undefined; font?: { ...; } | ... 2 more ... | undefined; padding?: number | ... 1 more ... | undef...' is not assignable to type '_DeepPartialObject<{ [key: string]: ScaleOptionsByType; }> | undefined'. Type '{ [x: string]: { type?: "time" | undefined; title?: { display?: boolean | undefined; align?: "center" | "end" | "start" | undefined; text?: string | (string | undefined)[] | undefined; color?: string | ... 2 more ... | undefined; font?: { ...; } | ... 2 more ... | undefined; padding?: number | ... 1 more ... | undef...' is not assignable to type '_DeepPartialObject<{ [key: string]: ScaleOptionsByType; }>'. 'string' index signatures are incompatible. Type '{ type?: "time" | undefined; title?: { display?: boolean | undefined; align?: "center" | "end" | "start" | undefined; text?: string | (string | undefined)[] | undefined; color?: string | { ...; } | { ...; } | undefined; font?: { ...; } | ... 2 more ... | undefined; padding?: number | ... 1 more ... | undefined; } | ...' is not assignable to type '_DeepPartialObject<{ type: "time"; } & Omit & { min: string | number; max: string | number; suggestedMin: string | number; ... 5 more ...; ticks: { ...; }; }> | ... 4 more ... | undefined'. Type '{ type?: "category" | undefined; title?: { display?: boolean | undefined; align?: "center" | "end" | "start" | undefined; text?: string | (string | undefined)[] | undefined; color?: string | { ...; } | { ...; } | undefined; font?: { ...; } | ... 2 more ... | undefined; padding?: number | ... 1 more ... | undefined; ...' is not assignable to type '_DeepPartialObject<{ type: "time"; } & Omit & { min: string | number; max: string | number; suggestedMin: string | number; ... 5 more ...; ticks: { ...; }; }> | ... 4 more ... | undefined'. Type '{ type?: "category" | undefined; title?: { display?: boolean | undefined; align?: "center" | "end" | "start" | undefined; text?: string | (string | undefined)[] | undefined; color?: string | { ...; } | { ...; } | undefined; font?: { ...; } | ... 2 more ... | undefined; padding?: number | ... 1 more ... | undefined; ...' is not assignable to type '_DeepPartialObject<{ type: "category"; } & Omit & { min: string | number; max: string | number; labels: string[] | string[][]; }>'. Types of property 'labels' are incompatible. Type '(string | undefined)[] | ((string | undefined)[] | undefined)[] | undefined' is not assignable to type '_DeepPartialArray | _DeepPartialArray | undefined'. Type '((string | undefined)[] | undefined)[]' is not assignable to type '_DeepPartialArray | _DeepPartialArray | undefined'. Type '((string | undefined)[] | undefined)[]' is not assignable to type '_DeepPartialArray'. Type '(string | undefined)[] | undefined' is not assignable to type 'string | undefined'. Type '(string | undefined)[]' is not assignable to type 'string'. 72 | 73 | function getOptions(opts?: DeepPartial> | undefined): ChartOptions<'line'> { > 74 | return deepmerge(options, opts || {}); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 75 | } 76 | 77 | type ChartDatasetCallback = (value: ChartDataset<'line'>, index: number) => ChartDataset<'line'>; ERROR in resources/scripts/components/server/console/Console.tsx:17:40 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';` 15 | import { SocketEvent, SocketRequest } from '@/components/server/events'; 16 | import classNames from 'classnames'; > 17 | import { ChevronDoubleRightIcon } from '@heroicons/react/solid'; | ^^^^^^^^^^^^^^^^^^^^^^^^ 18 | 19 | import CommandRow from '@/blueprint/components/Server/Terminal/CommandRow'; 20 | ERROR in resources/scripts/components/server/console/StatBlock.tsx:27:25 TS2322: Type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition'. 25 |
26 | 27 | icon={icon} | ^^^^ 28 | className={classNames({ 29 | 'text-gray-100': !color || color === 'bg-gray-700', 30 | 'text-gray-50': color && color !== 'bg-gray-700', ERROR in resources/scripts/components/server/console/StatGraphs.tsx:9:52 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';` 7 | import { hexToRgba } from '@/lib/helpers'; 8 | import { bytesToString } from '@/lib/formatters'; > 9 | import { CloudDownloadIcon, CloudUploadIcon } from '@heroicons/react/solid'; | ^^^^^^^^^^^^^^^^^^^^^^^^ 10 | import { theme } from 'twin.macro'; 11 | import ChartBlock from '@/components/server/console/ChartBlock'; 12 | import Tooltip from '@/components/elements/tooltip/Tooltip'; ERROR in resources/scripts/components/server/databases/DatabaseRow.tsx:144:38 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 142 | 143 |
> 144 | | ^^^^ 145 |
146 |
147 | ERROR in resources/scripts/components/server/databases/DatabaseRow.tsx:169:42 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 167 |
168 | 171 | 172 | 175 | 176 |
ERROR in resources/scripts/components/server/features/PIDLimitModalFeature.tsx:62:57 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 60 | <> 61 |
> 62 | | ^^^^ 63 |

Memory or process limit reached...

64 |
65 |

This server has reached the maximum process or memory limit.

ERROR in resources/scripts/components/server/features/PIDLimitModalFeature.tsx:83:57 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 81 | <> 82 |
> 83 | | ^^^^ 84 |

Possible resource limit reached...

85 |
86 |

ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:54:26 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 52 | const Row = ({ icon, title, ...props }: RowProps) => ( 53 | > 54 | | ^^^^ 55 | {title} 56 | 57 | ); ERROR in resources/scripts/components/server/files/FileDropdownMenu.tsx:148:42 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 146 | renderToggle={(onClick) => ( 147 |

> 148 | | ^^^^ 149 | {modal ? ( 150 | modal === 'chmod' ? ( 151 | 3 | import { CloudUploadIcon, XIcon } from '@heroicons/react/solid'; | ^^^^^^^^^^^^^^^^^^^^^^^^ 4 | import asDialog from '@/hoc/asDialog'; 5 | import { Dialog, DialogWrapperContext } from '@/components/elements/dialog'; 6 | import { Button } from '@/components/elements/button/index'; ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:32:13 TS2322: Type 'React.ReactNode' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@types/react-router/node_modules/@types/react/ts5.0/index").ReactNode'. Type '{}' is not assignable to type 'ReactNode'. 30 | to={`${match.url}${file.isFile ? '/edit' : ''}#${encodePathSegments(join(directory, file.name))}`} 31 | > > 32 | {children} | ^^^^^^^^^^ 33 | 34 | ); 35 | }, isEqual); ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:51:25 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 49 | {file.isFile ? ( 50 | 51 | icon={file.isSymlink ? faFileImport : file.isArchiveType() ? faFileArchive : faFileAlt} | ^^^^ 52 | /> 53 | ) : ( 54 | ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:54:38 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 52 | /> 53 | ) : ( > 54 | | ^^^^ 55 | )} 56 |
57 |
{file.name}
ERROR in resources/scripts/components/server/files/UploadButton.tsx:14:33 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';` 12 | import { WithClassname } from '@/components/types'; 13 | import Portal from '@/components/elements/Portal'; > 14 | import { CloudUploadIcon } from '@heroicons/react/outline'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 15 | import { useSignal } from '@preact/signals-react'; 16 | 17 | function isFileOrDirectory(event: DragEvent): boolean { ERROR in resources/scripts/components/server/mcmods/ModsCards.tsx:60:42 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 58 |

59 | {modCategory} > 60 | | ^^^^ 61 | {mod.downloads.toLocaleString()} 62 |

63 |
ERROR in resources/scripts/components/server/mcmods/ModsCards.tsx:92:42 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 90 | onClick={() => setModalVisible(true)} 91 | > > 92 | | ^^^^ 93 | Versions 94 | 95 | {mod.installable ? ( ERROR in resources/scripts/components/server/mcmods/ModsCards.tsx:100:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 98 | onClick={() => handleinstallMod(mod.category, mod.id, mod.name)} 99 | > > 100 | | ^^^^ 101 | Install 102 | 103 | ) : ( ERROR in resources/scripts/components/server/mcmods/ModsCards.tsx:108:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 106 | css={tw`bg-primary-600 hover:bg-primary-500 text-white px-4 py-2 rounded text-sm flex items-center`} 107 | > > 108 | | ^^^^ 109 | Install 110 | 111 | )} ERROR in resources/scripts/components/server/mcmods/ModsVersionContainer.tsx:76:58 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 74 | {version.downloads && version.downloads > 0 && ( 75 |

> 76 | | ^^^^ 77 | {version.downloads.toLocaleString()} downloads 78 |

79 | )} ERROR in resources/scripts/components/server/mcmods/ModsVersionContainer.tsx:102:62 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 100 | css={tw`bg-primary-600 hover:bg-primary-500 text-white px-4 py-2 rounded text-sm flex items-center`} 101 | > > 102 | | ^^^^ 103 | Download 104 | 105 | ) : ( ERROR in resources/scripts/components/server/mcmods/ModsVersionContainer.tsx:110:62 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 108 | onClick={() => handleInstall(version.versionId, modName)} 109 | > > 110 | | ^^^^ 111 | Install 112 | 113 | )} ERROR in resources/scripts/components/server/network/AllocationRow.tsx:66:38 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 64 |
65 |
> 66 | | ^^^^ 67 |
68 |
69 | {allocation.alias ? ( ERROR in resources/scripts/components/server/network/DeleteAllocationButton.tsx:55:23 TS2322: Type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition'. 53 | onClick={() => setConfirm(true)} 54 | > > 55 | | ^^^^ 56 | 57 | 58 | ); ERROR in resources/scripts/components/server/properties/ServerPropertiesContainer.tsx:225:62 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 223 | /> 224 | > 225 | | ^^^^ 226 | 227 | 228 | ERROR in resources/scripts/components/server/properties/ServerPropertiesContainer.tsx:231:58 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 229 | 230 | 234 | ERROR in resources/scripts/components/server/schedules/ScheduleRow.tsx:12:30 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 10 | <> 11 |
> 12 | | ^^^^ 13 |
14 |
15 |

{schedule.name}

ERROR in resources/scripts/components/server/schedules/ScheduleTaskRow.tsx:107:35 TS2322: Type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition'. 105 |
106 |
> 107 | | ^^^^ 108 | Continues on Failure 109 |
110 |
ERROR in resources/scripts/components/server/schedules/ScheduleTaskRow.tsx:115:35 TS2322: Type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@fortawesome/fontawesome-svg-core/node_modules/@fortawesome/fontawesome-common-types/index").IconDefinition'. 113 |
114 |
> 115 | | ^^^^ 116 | {task.timeOffset}s later 117 |
118 |
ERROR in resources/scripts/components/server/schedules/ScheduleTaskRow.tsx:127:42 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 125 | onClick={() => setIsEditing(true)} 126 | > > 127 | | ^^^^ 128 | 129 | 130 | ERROR in resources/scripts/components/server/schedules/ScheduleTaskRow.tsx:137:42 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 135 | onClick={() => setVisible(true)} 136 | > > 137 | | ^^^^ 138 | 139 | 140 |
ERROR in resources/scripts/components/server/ServerActivityLogContainer.tsx:13:29 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';` 11 | import classNames from 'classnames'; 12 | import { styles as btnStyles } from '@/components/elements/button/index'; > 13 | import { XCircleIcon } from '@heroicons/react/solid'; | ^^^^^^^^^^^^^^^^^^^^^^^^ 14 | import useLocationHash from '@/plugins/useLocationHash'; 15 | 16 | export default () => { ERROR in resources/scripts/components/server/users/RemoveSubuserButton.tsx:55:34 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 53 | onClick={() => setShowConfirmation(true)} 54 | > > 55 | | ^^^^ 56 | 57 | 58 | ); ERROR in resources/scripts/components/server/users/UserRow.tsx:33:25 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 31 |   32 | 33 | icon={subuser.twoFactorEnabled ? faUserLock : faUnlockAlt} | ^^^^ 34 | fixedWidth 35 | css={!subuser.twoFactorEnabled ? tw`text-red-400` : undefined} 36 | /> ERROR in resources/scripts/components/server/users/UserRow.tsx:56:46 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 54 | onClick={() => setVisible(true)} 55 | > > 56 | | ^^^^ 57 | 58 | 59 | ERROR in resources/scripts/routers/AuthenticationRouter.tsx:17:14 TS2786: 'Switch' cannot be used as a JSX component. Its instance type 'Switch' is not a valid JSX element. 15 | return ( 16 |
> 17 | | ^^^^^^ 18 | 19 | 20 | ERROR in resources/scripts/routers/AuthenticationRouter.tsx:18:18 TS2786: 'Route' cannot be used as a JSX component. Its instance type 'Route<{}, `${string}/login`>' is not a valid JSX element. Property 'refs' is missing in type 'Route<{}, `${string}/login`>' but required in type 'ElementClass'. 16 |
17 | > 18 | | ^^^^^ 19 | 20 | 21 | ERROR in resources/scripts/routers/AuthenticationRouter.tsx:19:18 TS2786: 'Route' cannot be used as a JSX component. Its instance type 'Route<{}, `${string}/login/checkpoint`>' is not a valid JSX element. Property 'refs' is missing in type 'Route<{}, `${string}/login/checkpoint`>' but required in type 'ElementClass'. 17 | 18 | > 19 | | ^^^^^ 20 | 21 | 22 | ERROR in resources/scripts/routers/AuthenticationRouter.tsx:20:18 TS2786: 'Route' cannot be used as a JSX component. Its instance type 'Route<{}, `${string}/password`>' is not a valid JSX element. Property 'refs' is missing in type 'Route<{}, `${string}/password`>' but required in type 'ElementClass'. 18 | 19 | > 20 | | ^^^^^ 21 | 22 | 23 | ERROR in resources/scripts/routers/AuthenticationRouter.tsx:21:18 TS2786: 'Route' cannot be used as a JSX component. Its instance type 'Route<{}, `${string}/password/reset/:token`>' is not a valid JSX element. Property 'refs' is missing in type 'Route<{}, `${string}/password/reset/:token`>' but required in type 'ElementClass'. 19 | 20 | > 21 | | ^^^^^ 22 | 23 | 24 | history.push('/auth/login')} /> ERROR in resources/scripts/routers/AuthenticationRouter.tsx:22:18 TS2786: 'Route' cannot be used as a JSX component. Its instance type 'Route<{}, `${string}/checkpoint`>' is not a valid JSX element. Property 'refs' is missing in type 'Route<{}, `${string}/checkpoint`>' but required in type 'ElementClass'. 20 | 21 | > 22 | | ^^^^^ 23 | 24 | history.push('/auth/login')} /> 25 | ERROR in resources/scripts/routers/AuthenticationRouter.tsx:23:18 TS2786: 'Route' cannot be used as a JSX component. Its instance type 'Route<{}, "*">' is not a valid JSX element. 21 | 22 | > 23 | | ^^^^^ 24 | history.push('/auth/login')} /> 25 | 26 | ERROR in resources/scripts/routers/ServerRouter.tsx:74:58 TS2322: Type 'IconDefinition' is not assignable to type 'IconProp'. 72 | // eslint-disable-next-line react/jsx-no-target-blank 73 | > 74 | | ^^^^ 75 | 76 | )} 77 |
ERROR in resources/scripts/TransitionRouter.tsx:8:39 TS2769: No overload matches this call. Overload 1 of 2, '(component: AnyStyledComponent): ThemedStyledFunction', gave the following error. Argument of type 'typeof SwitchTransition' is not assignable to parameter of type 'AnyStyledComponent'. Type 'typeof SwitchTransition' is not assignable to type 'StyledComponent'. Type 'typeof SwitchTransition' is not assignable to type 'string'. Overload 2 of 2, '(component: keyof IntrinsicElements | ComponentType): ThemedStyledFunction, any, {}, never>', gave the following error. Argument of type 'typeof SwitchTransition' is not assignable to parameter of type 'keyof IntrinsicElements | ComponentType'. Type 'typeof SwitchTransition' is not assignable to type 'ComponentClass'. Types of property 'contextType' are incompatible. Type 'React.Context | undefined' is not assignable to type 'import("/var/www/pterodactyl/node_modules/@types/react-router/node_modules/@types/react/ts5.0/index").Context | undefined'. Property '$$typeof' is missing in type 'React.Context' but required in type 'import("/var/www/pterodactyl/node_modules/@types/react-router/node_modules/@types/react/ts5.0/index").Context'. 6 | import tw from 'twin.macro'; 7 | > 8 | const StyledSwitchTransition = styled(SwitchTransition)` | ^^^^^^^^^^^^^^^^ 9 | ${tw`relative`}; 10 | 11 | & section { ERROR in resources/scripts/TransitionRouter.tsx:18:10 TS2786: 'Route' cannot be used as a JSX component. Its instance type 'Route<{}, string>' is not a valid JSX element. Property 'refs' is missing in type 'Route<{}, string>' but required in type 'ElementClass'. 16 | const TransitionRouter: React.FC = ({ children }) => { 17 | return ( > 18 | ( 20 | 21 | error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. root@Vishal-panel:/var/www/pterodactyl#