Untitled
unknown
plain_text
3 years ago
41 kB
11
Indexable
root@vmi743304:/var/www/pterodactyl# yarn build:production
yarn run v1.22.18
$ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production
$ cd public/assets && find . \( -name "*.js" -o -name "*.map" \) -type f -delete
Hash: 6499a7edb3aeca69487d
Version: webpack 4.43.0
Time: 86333ms
Built at: 10/28/2022 5:23:37 PM
16 assets
Entrypoint main = bundle.a68ce736.js
[12] ./node_modules/history/esm/history.js + 2 modules 30.6 KiB {5} [built]
| 3 modules
[15] ./node_modules/react-router/esm/react-router.js + 1 modules 29.2 KiB {5} [built]
| 2 modules
[17] ./resources/scripts/api/http.ts 4.07 KiB {5} [built]
[18] ./resources/scripts/state/index.ts + 7 modules 5.07 KiB {5} [built]
| ./resources/scripts/state/index.ts 359 bytes [built]
| ./resources/scripts/state/flashes.ts 1.7 KiB [built]
| ./resources/scripts/state/user.ts 1.54 KiB [built]
| ./resources/scripts/state/permissions.ts 393 bytes [built]
| ./resources/scripts/state/settings.ts 177 bytes [built]
| ./resources/scripts/state/progress.ts 408 bytes [built]
| ./resources/scripts/api/account/updateAccountEmail.ts 239 bytes [built]
| ./resources/scripts/api/getSystemPermissions.ts 277 bytes [built]
[29] ./resources/scripts/helpers.ts 1.08 KiB {5} [built]
[35] ./node_modules/react-transition-group/esm/index.js + 4 modules 22.6 KiB {5} [built]
| 5 modules
[49] ./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/postcss-loader/dist/cjs.js??ref--6-2!./resources/scripts/assets/tailwind.css 47.7 KiB {5} [built]
[50] ./resources/scripts/state/server/index.ts + 5 modules 5.56 KiB {5} [built]
| ./resources/scripts/state/server/index.ts 2.34 KiB [built]
| ./resources/scripts/state/server/socket.ts 284 bytes [built]
| ./resources/scripts/state/server/files.ts 1.22 KiB [built]
| ./resources/scripts/state/server/subusers.ts 575 bytes [built]
| ./resources/scripts/state/server/schedules.ts 584 bytes [built]
| ./resources/scripts/state/server/databases.ts 584 bytes [built]
[58] ./resources/scripts/state/hooks.ts 280 bytes {5} [built]
[81] ./node_modules/react-i18next/dist/es/index.js + 9 modules 30.2 KiB {5} [built]
| 10 modules
[96] multi react-hot-loader/patch ./resources/scripts/index.tsx 40 bytes {5} [built]
[150] ./resources/scripts/index.tsx + 22 modules 121 KiB {5} [built]
| ./resources/scripts/index.tsx 543 bytes [built]
| ./resources/scripts/i18n.ts 1.08 KiB [built]
| ./resources/scripts/assets/css/GlobalStylesheet.ts 1.88 KiB [built]
| ./resources/scripts/api/interceptors.ts 772 bytes [built]
| ./resources/scripts/assets/tailwind.css 410 bytes [built]
| + 18 hidden modules
[407] ./resources/scripts/routers/ServerRouter.tsx + 11 modules 31.7 KiB {6} [built]
| ./resources/scripts/routers/ServerRouter.tsx 5.71 KiB [built]
| ./resources/scripts/routers/ServerElements.tsx 4.01 KiB [built]
| ./resources/scripts/routers/SideBarElements.tsx 2.1 KiB [built]
| ./resources/scripts/plugins/Websocket.ts 2.46 KiB [built]
| ./resources/scripts/api/server/getWebsocketToken.ts 354 bytes [built]
| + 7 hidden modules
[409] ./resources/scripts/routers/AuthenticationRouter.tsx + 9 modules 28.4 KiB {3} [built]
| ./resources/scripts/routers/AuthenticationRouter.tsx 1.57 KiB [built]
| ./resources/scripts/api/auth/login.ts 748 bytes [built]
| ./resources/scripts/api/auth/requestPasswordResetEmail.ts 295 bytes [built]
| ./resources/scripts/api/auth/performPasswordReset.ts 432 bytes [built]
| ./resources/scripts/api/auth/loginCheckpoint.ts 493 bytes [built]
| + 5 hidden modules
[410] ./resources/scripts/routers/DashboardRouter.tsx + 5 modules 31.5 KiB {4} [built]
| ./resources/scripts/routers/DashboardRouter.tsx 3.27 KiB [built]
| ./resources/scripts/api/server/getServerResourceUsage.ts 767 bytes [built]
| + 4 hidden modules
+ 397 hidden modules
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<Values>) => {
39 | setPropOverrides(state => ({ ...state, showSpinnerOverlay: true }));
> 40 | enableAccountTwoFactor(code)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 | .then(tokens => {
42 | setRecoveryTokens(tokens);
43 | })
ERROR in resources/scripts/components/elements/StatusItem.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 } 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/elements/StatusItem.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 } 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/elements/StatusItem.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 |
74 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
ERROR in resources/scripts/components/server/Console.tsx:21:18
TS2732: Cannot find module '../../../../lang.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
19 | import { usePersistedState } from '@/plugins/usePersistedState';
20 | import { SocketEvent, SocketRequest } from '@/components/server/events';
> 21 | import lang from '../../../../lang.json';
| ^^^^^^^^^^^^^^^^^^^^^^^
22 |
23 | const theme = {
24 | background: th`colors.black`.toString(),
ERROR in resources/scripts/components/server/Console.tsx:81:82
TS2339: Property 'isInstalling' does not exist on type 'Server'.
79 |
80 | export default () => {
> 81 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
| ^^^^^^^^^^^^
82 |
83 |
84 | const TERMINAL_PRELUDE = '\u001b[1m\u001b[33mcontainer@pterodactyl~ \u001b[0m';
ERROR in resources/scripts/components/server/Graphs/CPUGraph.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 tw from 'twin.macro';
7 | import { SocketEvent } from '@/components/server/events';
ERROR in resources/scripts/components/server/Graphs/CPUGraph.tsx:48:13
TS2322: Type '{ ticks: { display: false; }; gridLines: { display: false; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "time"; } & Omit<CartesianScaleOptions, "max" | "min"> & { 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<Color, ScriptableScaleContext>; 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'.
46 | },
47 | scales: {
> 48 | xAxes: [{
| ^^^^^
49 | ticks: {
50 | display: false,
51 | },
ERROR in resources/scripts/components/server/Graphs/CPUGraph.tsx:56: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<CartesianScaleOptions, "max" | "min"> & { 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<Color, ScriptableScaleContext>; 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'.
54 | },
55 | }],
> 56 | yAxes: [{
| ^^^^^
57 | gridLines: {
58 | drawTicks: false,
59 | color: 'transparent',
ERROR in resources/scripts/components/server/Graphs/CPUGraph.tsx:89:42
TS2709: Cannot use namespace 'Chart' as a type.
87 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
88 |
> 89 | const [memory, setMemory] = useState<Chart>();
| ^^^^^
90 | const [cpu, setCpu] = useState<Chart>();
91 |
92 | const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => {
ERROR in resources/scripts/components/server/Graphs/CPUGraph.tsx:90:36
TS2709: Cannot use namespace 'Chart' as a type.
88 |
89 | const [memory, setMemory] = useState<Chart>();
> 90 | const [cpu, setCpu] = useState<Chart>();
| ^^^^^
91 |
92 | const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => {
93 | if (!node) {
ERROR in resources/scripts/components/server/Graphs/CPUGraph.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 | setMemory(
> 98 | new Chart(node.getContext('2d')!, chartDefaults({
| ^^^^^
99 | callback: (value) => `${value}Mb `,
100 | suggestedMax: limits.memory,
101 | })),
ERROR in resources/scripts/components/server/Graphs/CPUGraph.tsx:100:17
TS2345: Argument of type '{ callback: (this: Scale<CoreScaleOptions>, 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}Mb `,
> 100 | suggestedMax: limits.memory,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
101 | })),
102 | );
103 | }, []);
ERROR in resources/scripts/components/server/Graphs/CPUGraph.tsx:111:17
TS2351: This expression is not constructable.
Type 'typeof import("/var/www/pterodactyl/node_modules/chart.js/types/index.esm")' has no construct signatures.
109 |
110 | setCpu(
> 111 | new Chart(node.getContext('2d')!, chartDefaults({
| ^^^^^
112 | callback: (value) => `${value}% `,
113 | })),
114 | );
ERROR in resources/scripts/components/server/Graphs/CPUGraph.tsx:111:61
TS2345: Argument of type '{ callback: (this: Scale<CoreScaleOptions>, value: string | number) => string; }' is not assignable to parameter of type 'TickOptions'.
Type '{ callback: (this: Scale<CoreScaleOptions>, value: string | number) => string; }' is missing the following properties from type 'TickOptions': backdropColor, backdropPadding, display, color, and 7 more.
109 |
110 | setCpu(
> 111 | new Chart(node.getContext('2d')!, chartDefaults({
| ^
> 112 | callback: (value) => `${value}% `,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 113 | })),
| ^^^^^^^^^^^^^^
114 | );
115 | }, []);
116 |
ERROR in resources/scripts/components/server/Graphs/RamGraph.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 tw from 'twin.macro';
7 | import { SocketEvent } from '@/components/server/events';
ERROR in resources/scripts/components/server/Graphs/RamGraph.tsx:48:13
TS2322: Type '{ ticks: { display: false; }; gridLines: { display: false; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "time"; } & Omit<CartesianScaleOptions, "max" | "min"> & { 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<Color, ScriptableScaleContext>; 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'.
46 | },
47 | scales: {
> 48 | xAxes: [{
| ^^^^^
49 | ticks: {
50 | display: false,
51 | },
ERROR in resources/scripts/components/server/Graphs/RamGraph.tsx:56: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<CartesianScaleOptions, "max" | "min"> & { 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<Color, ScriptableScaleContext>; 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'.
54 | },
55 | }],
> 56 | yAxes: [{
| ^^^^^
57 | gridLines: {
58 | drawTicks: false,
59 | color: 'transparent',
ERROR in resources/scripts/components/server/Graphs/RamGraph.tsx:89:42
TS2709: Cannot use namespace 'Chart' as a type.
87 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
88 |
> 89 | const [memory, setMemory] = useState<Chart>();
| ^^^^^
90 | const [cpu, setCpu] = useState<Chart>();
91 |
92 | const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => {
ERROR in resources/scripts/components/server/Graphs/RamGraph.tsx:90:36
TS2709: Cannot use namespace 'Chart' as a type.
88 |
89 | const [memory, setMemory] = useState<Chart>();
> 90 | const [cpu, setCpu] = useState<Chart>();
| ^^^^^
91 |
92 | const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => {
93 | if (!node) {
ERROR in resources/scripts/components/server/Graphs/RamGraph.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 | setMemory(
> 98 | new Chart(node.getContext('2d')!, chartDefaults({
| ^^^^^
99 | callback: (value) => `${value}Mb `,
100 | suggestedMax: limits.memory,
101 | })),
ERROR in resources/scripts/components/server/Graphs/RamGraph.tsx:100:17
TS2345: Argument of type '{ callback: (this: Scale<CoreScaleOptions>, 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}Mb `,
> 100 | suggestedMax: limits.memory,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
101 | })),
102 | );
103 | }, []);
ERROR in resources/scripts/components/server/Graphs/RamGraph.tsx:111:17
TS2351: This expression is not constructable.
Type 'typeof import("/var/www/pterodactyl/node_modules/chart.js/types/index.esm")' has no construct signatures.
109 |
110 | setCpu(
> 111 | new Chart(node.getContext('2d')!, chartDefaults({
| ^^^^^
112 | callback: (value) => `${value}% `,
113 | })),
114 | );
ERROR in resources/scripts/components/server/Graphs/RamGraph.tsx:111:61
TS2345: Argument of type '{ callback: (this: Scale<CoreScaleOptions>, value: string | number) => string; }' is not assignable to parameter of type 'TickOptions'.
Type '{ callback: (this: Scale<CoreScaleOptions>, value: string | number) => string; }' is missing the following properties from type 'TickOptions': backdropColor, backdropPadding, display, color, and 7 more.
109 |
110 | setCpu(
> 111 | new Chart(node.getContext('2d')!, chartDefaults({
| ^
> 112 | callback: (value) => `${value}% `,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 113 | })),
| ^^^^^^^^^^^^^^
114 | );
115 | }, []);
116 |
ERROR in resources/scripts/components/server/PowerControls.tsx:8:18
TS2732: Cannot find module '../../../../lang.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
6 | import { PowerAction } from '@/components/server/ServerConsole';
7 | import { ServerContext } from '@/state/server';
> 8 | import lang from '../../../../lang.json';
| ^^^^^^^^^^^^^^^^^^^^^^^
9 |
10 | const PowerControls = () => {
11 | const status = ServerContext.useStoreState(state => state.status.value);
ERROR in resources/scripts/components/server/ServerConsole.tsx:7:10
TS2614: Module '"@feature/index"' has no exported member 'EulaModalFeature'. Did you mean to use 'import EulaModalFeature from "@feature/index"' instead?
5 | import ServerDetailsBlock from '@/components/server/ServerDetailsBlock';
6 | import isEqual from 'react-fast-compare';
> 7 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
| ^^^^^^^^^^^^^^^^
8 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
9 | import Spinner from '@/components/elements/Spinner';
10 | import SideGraph from '@/components/server/SideGraph';
ERROR in resources/scripts/components/server/ServerConsole.tsx:7:28
TS2614: Module '"@feature/index"' has no exported member 'JavaVersionModalFeature'. Did you mean to use 'import JavaVersionModalFeature from "@feature/index"' instead?
5 | import ServerDetailsBlock from '@/components/server/ServerDetailsBlock';
6 | import isEqual from 'react-fast-compare';
> 7 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
| ^^^^^^^^^^^^^^^^^^^^^^^
8 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
9 | import Spinner from '@/components/elements/Spinner';
10 | import SideGraph from '@/components/server/SideGraph';
ERROR in resources/scripts/components/server/ServerConsole.tsx:7:53
TS2614: Module '"@feature/index"' has no exported member 'GSLTokenModalFeature'. Did you mean to use 'import GSLTokenModalFeature from "@feature/index"' instead?
5 | import ServerDetailsBlock from '@/components/server/ServerDetailsBlock';
6 | import isEqual from 'react-fast-compare';
> 7 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
| ^^^^^^^^^^^^^^^^^^^^
8 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
9 | import Spinner from '@/components/elements/Spinner';
10 | import SideGraph from '@/components/server/SideGraph';
ERROR in resources/scripts/components/server/ServerConsole.tsx:7:75
TS2614: Module '"@feature/index"' has no exported member 'PIDLimitModalFeature'. Did you mean to use 'import PIDLimitModalFeature from "@feature/index"' instead?
5 | import ServerDetailsBlock from '@/components/server/ServerDetailsBlock';
6 | import isEqual from 'react-fast-compare';
> 7 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
| ^^^^^^^^^^^^^^^^^^^^
8 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
9 | import Spinner from '@/components/elements/Spinner';
10 | import SideGraph from '@/components/server/SideGraph';
ERROR in resources/scripts/components/server/ServerConsole.tsx:7:97
TS2614: Module '"@feature/index"' has no exported member 'SteamDiskSpaceFeature'. Did you mean to use 'import SteamDiskSpaceFeature from "@feature/index"' instead?
5 | import ServerDetailsBlock from '@/components/server/ServerDetailsBlock';
6 | import isEqual from 'react-fast-compare';
> 7 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
| ^^^^^^^^^^^^^^^^^^^^^
8 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
9 | import Spinner from '@/components/elements/Spinner';
10 | import SideGraph from '@/components/server/SideGraph';
ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:10
TS2305: Module '"@/helpers"' has no exported member 'bytesToHuman'.
3 | import { faHdd, faMemory, faMicrochip } from '@fortawesome/free-solid-svg-icons';
4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
> 5 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
| ^^^^^^^^^^^^
6 | import { ServerContext } from '@/state/server';
7 | import { SocketEvent, SocketRequest } from '@/components/server/events';
8 | import styled from 'styled-components/macro';
ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:24
TS2305: Module '"@/helpers"' has no exported member 'megabytesToHuman'.
3 | import { faHdd, faMemory, faMicrochip } from '@fortawesome/free-solid-svg-icons';
4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
> 5 | import { bytesToHuman, megabytesToHuman } from '@/helpers';
| ^^^^^^^^^^^^^^^^
6 | import { ServerContext } from '@/state/server';
7 | import { SocketEvent, SocketRequest } from '@/components/server/events';
8 | import styled from 'styled-components/macro';
ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:9:18
TS2732: Cannot find module '../../../../lang.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
7 | import { SocketEvent, SocketRequest } from '@/components/server/events';
8 | import styled from 'styled-components/macro';
> 9 | import lang from '../../../../lang.json';
| ^^^^^^^^^^^^^^^^^^^^^^^
10 |
11 | const DetailsItem = styled.div`
12 | position:relative;
ERROR in resources/scripts/components/server/SideGraph.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 { ServerContext } from '@/state/server';
7 | import RamGraph from '@/components/server/Graphs/RamGraph'
8 | import CPUGraph from '@/components/server/Graphs/CPUGraph'
ERROR in resources/scripts/components/server/SideGraph.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 { ServerContext } from '@/state/server';
7 | import RamGraph from '@/components/server/Graphs/RamGraph'
8 | import CPUGraph from '@/components/server/Graphs/CPUGraph'
ERROR in resources/scripts/components/server/SideGraph.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 { ServerContext } from '@/state/server';
7 | import RamGraph from '@/components/server/Graphs/RamGraph'
8 | import CPUGraph from '@/components/server/Graphs/CPUGraph'
ERROR in resources/scripts/components/server/SideGraph.tsx:13:18
TS2732: Cannot find module '../../../../lang.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
11 | import UptimeDuration from '@/components/server/UptimeDuration';
12 | import styled,{ css } from 'styled-components/macro';
> 13 | import lang from '../../../../lang.json';
| ^^^^^^^^^^^^^^^^^^^^^^^
14 |
15 | const DetailsItem = styled.div`
16 | position:relative;
ERROR in resources/scripts/components/server/SideGraph.tsx:126:82
TS2339: Property 'isInstalling' does not exist on type 'Server'.
124 | }, [ instance, connected ]);
125 |
> 126 | const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
| ^^^^^^^^^^^^
127 | const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
128 |
129 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
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:11:18
TS2732: Cannot find module '../../../../lang.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
9 | import { SocketEvent } from '@/components/server/events';
10 | import useWebsocketEvent from '@/plugins/useWebsocketEvent';
> 11 | import lang from '../../../../lang.json';
| ^^^^^^^^^^^^^^^^^^^^^^^
12 |
13 | const chartDefaults = (ticks?: Chart.TickOptions | undefined): ChartConfiguration => ({
14 | type: 'line',
ERROR in resources/scripts/components/server/StatGraphs.tsx:36:13
TS2322: Type '{ ticks: { display: false; }; gridLines: { display: false; }; }[]' is not assignable to type '_DeepPartialObject<{ type: "time"; } & Omit<CartesianScaleOptions, "max" | "min"> & { 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<Color, ScriptableScaleContext>; 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'.
34 | },
35 | scales: {
> 36 | xAxes: [ {
| ^^^^^
37 | ticks: {
38 | display: false,
39 | },
ERROR in resources/scripts/components/server/StatGraphs.tsx:44: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<CartesianScaleOptions, "max" | "min"> & { 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<Color, ScriptableScaleContext>; 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'.
42 | },
43 | } ],
> 44 | yAxes: [ {
| ^^^^^
45 | gridLines: {
46 | drawTicks: false,
47 | color: 'rgba(229, 232, 235, 0.15)',
ERROR in resources/scripts/components/server/StatGraphs.tsx:77:44
TS2709: Cannot use namespace 'Chart' as a type.
75 | const limits = ServerContext.useStoreState(state => state.server.data!.limits);
76 |
> 77 | const [ memory, setMemory ] = useState<Chart>();
| ^^^^^
78 | const [ cpu, setCpu ] = useState<Chart>();
79 |
80 | const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => {
ERROR in resources/scripts/components/server/StatGraphs.tsx:78:38
TS2709: Cannot use namespace 'Chart' as a type.
76 |
77 | const [ memory, setMemory ] = useState<Chart>();
> 78 | const [ cpu, setCpu ] = useState<Chart>();
| ^^^^^
79 |
80 | const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => {
81 | if (!node) {
ERROR in resources/scripts/components/server/StatGraphs.tsx:86:17
TS2351: This expression is not constructable.
Type 'typeof import("/var/www/pterodactyl/node_modules/chart.js/types/index.esm")' has no construct signatures.
84 |
85 | setMemory(
> 86 | new Chart(node.getContext('2d')!, chartDefaults({
| ^^^^^
87 | callback: (value) => `${value}Mb `,
88 | suggestedMax: limits.memory,
89 | })),
ERROR in resources/scripts/components/server/StatGraphs.tsx:88:17
TS2345: Argument of type '{ callback: (this: Scale<CoreScaleOptions>, 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'.
86 | new Chart(node.getContext('2d')!, chartDefaults({
87 | callback: (value) => `${value}Mb `,
> 88 | suggestedMax: limits.memory,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
89 | })),
90 | );
91 | }, []);
ERROR in resources/scripts/components/server/StatGraphs.tsx:99:17
TS2351: This expression is not constructable.
Type 'typeof import("/var/www/pterodactyl/node_modules/chart.js/types/index.esm")' has no construct signatures.
97 |
98 | setCpu(
> 99 | new Chart(node.getContext('2d')!, chartDefaults({
| ^^^^^
100 | callback: (value) => `${value}% `,
101 | suggestedMax: limits.cpu,
102 | })),
ERROR in resources/scripts/components/server/StatGraphs.tsx:101:17
TS2345: Argument of type '{ callback: (this: Scale<CoreScaleOptions>, 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'.
99 | new Chart(node.getContext('2d')!, chartDefaults({
100 | callback: (value) => `${value}% `,
> 101 | suggestedMax: limits.cpu,
| ^^^^^^^^^^^^^^^^^^^^^^^^
102 | })),
103 | );
104 | }, []);
ERROR in resources/scripts/components/server/StopOrKillButton.tsx:6:18
TS2732: Cannot find module '../../../../lang.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.
4 | import Button from '@/components/elements/Button';
5 | import isEqual from 'react-fast-compare';
> 6 | import lang from '../../../../lang.json';
| ^^^^^^^^^^^^^^^^^^^^^^^
7 |
8 | const StopOrKillButton = ({ onPress }: { onPress: (action: PowerAction) => void }) => {
9 | const [ clicked, setClicked ] = useState(false);
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Editor is loading...