ERROR in resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx:40:9 TS2554: Expected 2 arguments, but got 1. 38 | const submit = ({ code }: Values, { setSubmitting }: FormikHelpers) => { 39 | setPropOverrides((state) => ({ ...state, showSpinnerOverlay: true })); > 40 | enableAccountTwoFactor(code) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 41 | .then((tokens) => { 42 | setRecoveryTokens(tokens); 43 | }) ERROR in resources/scripts/components/server/ServerConsole.tsx:10:10 TS2614: Module '"@feature/index"' has no exported member 'EulaModalFeature'. Did you mean to use 'import EulaModalFeature from "@feature/index"' instead? 8 | import isEqual from 'react-fast-compare'; 9 | import PowerControls from '@/components/server/PowerControls'; > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index'; | ^^^^^^^^^^^^^^^^ 11 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; 12 | import Spinner from '@/components/elements/Spinner'; 13 | ERROR in resources/scripts/components/server/ServerConsole.tsx:10:28 TS2614: Module '"@feature/index"' has no exported member 'JavaVersionModalFeature'. Did you mean to use 'import JavaVersionModalFeature from "@feature/index"' instead? 8 | import isEqual from 'react-fast-compare'; 9 | import PowerControls from '@/components/server/PowerControls'; > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index'; | ^^^^^^^^^^^^^^^^^^^^^^^ 11 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; 12 | import Spinner from '@/components/elements/Spinner'; 13 | ERROR in resources/scripts/components/server/ServerConsole.tsx:10:53 TS2614: Module '"@feature/index"' has no exported member 'GSLTokenModalFeature'. Did you mean to use 'import GSLTokenModalFeature from "@feature/index"' instead? 8 | import isEqual from 'react-fast-compare'; 9 | import PowerControls from '@/components/server/PowerControls'; > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index'; | ^^^^^^^^^^^^^^^^^^^^ 11 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; 12 | import Spinner from '@/components/elements/Spinner'; 13 | ERROR in resources/scripts/components/server/ServerConsole.tsx:10:75 TS2614: Module '"@feature/index"' has no exported member 'PIDLimitModalFeature'. Did you mean to use 'import PIDLimitModalFeature from "@feature/index"' instead? 8 | import isEqual from 'react-fast-compare'; 9 | import PowerControls from '@/components/server/PowerControls'; > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index'; | ^^^^^^^^^^^^^^^^^^^^ 11 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; 12 | import Spinner from '@/components/elements/Spinner'; 13 | ERROR in resources/scripts/components/server/ServerConsole.tsx:10:97 TS2614: Module '"@feature/index"' has no exported member 'SteamDiskSpaceFeature'. Did you mean to use 'import SteamDiskSpaceFeature from "@feature/index"' instead? 8 | import isEqual from 'react-fast-compare'; 9 | import PowerControls from '@/components/server/PowerControls'; > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index'; | ^^^^^^^^^^^^^^^^^^^^^ 11 | import ErrorBoundary from '@/components/elements/ErrorBoundary'; 12 | import Spinner from '@/components/elements/Spinner'; 13 | ERROR in resources/scripts/components/server/ServerConsole.tsx:20:82 TS2339: Property 'isInstalling' does not exist on type 'Server'. 18 | 19 | const ServerConsole = () => { > 20 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling); | ^^^^^^^^^^^^ 21 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring); 22 | const eggFeatures = ServerContext.useStoreState(state => state.server.data!.eggFeatures, isEqual); 23 | ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:10 TS2305: Module '"@/helpers"' has no exported member 'bytesToHuman'. 3 | import { faCircle, faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons'; 4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; > 5 | import { bytesToHuman, megabytesToHuman, formatIp } from '@/helpers'; | ^^^^^^^^^^^^ 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox'; 7 | import { ServerContext } from '@/state/server'; 8 | import CopyOnClick from '@/components/elements/CopyOnClick'; ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:24 TS2305: Module '"@/helpers"' has no exported member 'megabytesToHuman'. 3 | import { faCircle, faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons'; 4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; > 5 | import { bytesToHuman, megabytesToHuman, formatIp } from '@/helpers'; | ^^^^^^^^^^^^^^^^ 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox'; 7 | import { ServerContext } from '@/state/server'; 8 | import CopyOnClick from '@/components/elements/CopyOnClick'; ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:42 TS2305: Module '"@/helpers"' has no exported member 'formatIp'. 3 | import { faCircle, faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons'; 4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; > 5 | import { bytesToHuman, megabytesToHuman, formatIp } from '@/helpers'; | ^^^^^^^^ 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox'; 7 | import { ServerContext } from '@/state/server'; 8 | import CopyOnClick from '@/components/elements/CopyOnClick'; ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:71:82 TS2339: Property 'isInstalling' does not exist on type 'Server'. 69 | 70 | const name = ServerContext.useStoreState(state => state.server.data!.name); > 71 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling); | ^^^^^^^^^^^^ 72 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring); 73 | const limits = ServerContext.useStoreState(state => state.server.data!.limits); 74 | const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map( ERROR in resources/scripts/components/server/StatGraphs.tsx:4:10 TS2305: Module '"@/helpers"' has no exported member 'bytesToMegabytes'. 2 | import Chart, { ChartConfiguration } from 'chart.js'; 3 | import { ServerContext } from '@/state/server'; > 4 | import { bytesToMegabytes } from '@/helpers'; | ^^^^^^^^^^^^^^^^ 5 | import merge from 'deepmerge'; 6 | import TitledGreyBox from '@/components/elements/TitledGreyBox'; 7 | import { faMemory, faMicrochip } from '@fortawesome/free-solid-svg-icons'; ERROR in resources/scripts/components/server/StatGraphs.tsx:35:13 TS2322: Type '{ ticks: { display: false; }; gridLines: { display: false; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "time"; } & Omit & { min: string | number; max: string | number; suggestedMin: string | number; ... 5 more ...; ticks: { ...; }; }> | ... 5 more ... | undefined'. Type '{ ticks: { display: false; }; gridLines: { display: false; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "radialLinear"; } & CoreScaleOptions & { animate: boolean; startAngle: number; angleLines: { display: boolean; color: Scriptable; lineWidth: Scriptable<...>; borderDash: Scriptable<...>; borderDashOffset: Scriptable<...>; }; ... 7 more ...; ticks: RadialTickO...'. Types of property 'reverse' are incompatible. Type '() => { ticks: { display: false; }; gridLines: { display: false; }; }[]' is not assignable to type 'boolean | undefined'. 33 | }, 34 | scales: { > 35 | xAxes: [ { | ^^^^^ 36 | ticks: { 37 | display: false, 38 | }, ERROR in resources/scripts/components/server/StatGraphs.tsx:43:13 TS2322: Type '{ gridLines: { drawTicks: false; color: string; zeroLineColor: string; zeroLineWidth: number; }; ticks: { backdropColor: string | CanvasGradient | CanvasPattern | ((ctx: ScriptableScaleContext, options: AnyObject) => Color | undefined); ... 10 more ...; major: { ...; }; } & { ...; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "time"; } & Omit & { min: string | number; max: string | number; suggestedMin: string | number; ... 5 more ...; ticks: { ...; }; }> | ... 5 more ... | undefined'. Type '{ gridLines: { drawTicks: false; color: string; zeroLineColor: string; zeroLineWidth: number; }; ticks: { backdropColor: string | CanvasGradient | CanvasPattern | ((ctx: ScriptableScaleContext, options: AnyObject) => Color | undefined); ... 10 more ...; major: { ...; }; } & { ...; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "radialLinear"; } & CoreScaleOptions & { animate: boolean; startAngle: number; angleLines: { display: boolean; color: Scriptable; lineWidth: Scriptable<...>; borderDash: Scriptable<...>; borderDashOffset: Scriptable<...>; }; ... 7 more ...; ticks: RadialTickO...'. Types of property 'reverse' are incompatible. Type '() => { gridLines: { drawTicks: false; color: string; zeroLineColor: string; zeroLineWidth: number; }; ticks: { backdropColor: string | CanvasGradient | CanvasPattern | ((ctx: ScriptableScaleContext, options: AnyObject) => Color | undefined); ... 10 more ...; major: { ...; }; } & { ...; }; }[]' is not assignable to type 'boolean | undefined'. 41 | }, 42 | } ], > 43 | yAxes: [ { | ^^^^^ 44 | gridLines: { 45 | drawTicks: false, 46 | color: 'rgba(229, 232, 235, 0.15)', ERROR in resources/scripts/components/server/StatGraphs.tsx:76:44 TS2709: Cannot use namespace 'Chart' as a type. 74 | const limits = ServerContext.useStoreState(state => state.server.data!.limits); 75 | > 76 | const [ memory, setMemory ] = useState(); | ^^^^^ 77 | const [ cpu, setCpu ] = useState(); 78 | 79 | const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => { ERROR in resources/scripts/components/server/StatGraphs.tsx:77:38 TS2709: Cannot use namespace 'Chart' as a type. 75 | 76 | const [ memory, setMemory ] = useState(); > 77 | const [ cpu, setCpu ] = useState(); | ^^^^^ 78 | 79 | const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => { 80 | if (!node) { ERROR in resources/scripts/components/server/StatGraphs.tsx:85:17 TS2351: This expression is not constructable. Type 'typeof import("/var/www/pterodactyl/node_modules/chart.js/types/index.esm")' has no construct signatures. 83 | 84 | setMemory( > 85 | new Chart(node.getContext('2d')!, chartDefaults({ | ^^^^^ 86 | callback: (value) => `${value}Mb `, 87 | suggestedMax: limits.memory, 88 | })), ERROR in resources/scripts/components/server/StatGraphs.tsx:87:17 TS2345: Argument of type '{ callback: (this: Scale, value: string | number) => string; suggestedMax: number; }' is not assignable to parameter of type 'TickOptions'. Object literal may only specify known properties, and 'suggestedMax' does not exist in type 'TickOptions'. 85 | new Chart(node.getContext('2d')!, chartDefaults({ 86 | callback: (value) => `${value}Mb `, > 87 | suggestedMax: limits.memory, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 88 | })), 89 | ); 90 | }, []); ERROR in resources/scripts/components/server/StatGraphs.tsx:98:17 TS2351: This expression is not constructable. Type 'typeof import("/var/www/pterodactyl/node_modules/chart.js/types/index.esm")' has no construct signatures. 96 | 97 | setCpu( > 98 | new Chart(node.getContext('2d')!, chartDefaults({ | ^^^^^ 99 | callback: (value) => `${value}% `, 100 | suggestedMax: limits.cpu, 101 | })), ERROR in resources/scripts/components/server/StatGraphs.tsx:100:17 TS2345: Argument of type '{ callback: (this: Scale, value: string | number) => string; suggestedMax: number; }' is not assignable to parameter of type 'TickOptions'. Object literal may only specify known properties, and 'suggestedMax' does not exist in type 'TickOptions'. 98 | new Chart(node.getContext('2d')!, chartDefaults({ 99 | callback: (value) => `${value}% `, > 100 | suggestedMax: limits.cpu, | ^^^^^^^^^^^^^^^^^^^^^^^^ 101 | })), 102 | ); 103 | }, []); error Command failed with exit code 2.