Open stealthy-coder opened 2 years ago
More info needed wich version etc
panel version 1.9.2 latest mctheme
all themes have this issue
Try reinstalling the resources folder
what do you mean by 'reinstall the resources folder' ? Do i re-download the script?
Delete resources folder, run panel update, then run our script again.
An Error
ERROR in ./resources/scripts/index.tsx Module not found: Error: Can't resolve 'tailwindcss/dist/base.min.css' in '/var/www/pterodactyl/resources/scripts' @ ./resources/scripts/index.tsx 6:0-39 @ multi react-hot-loader/patch ./resources/scripts/index.tsx
ERROR in resources/scripts/components/elements/dialog/DialogFooter.tsx:2:10 TS2305: Module '"./"' has no exported member 'DialogContext'. 1 | import React, { useContext } from 'react';
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';
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';
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';
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';
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';
ERROR in resources/scripts/components/server/ServerConsole.tsx:20:82 TS2339: Property 'isInstalling' does not exist on type 'Server'. 18 | 19 | const ServerConsole = () => {
ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:14:10 TS2305: Module '"@/helpers"' has no exported member 'bytesToHuman'. 12 | } from '@fortawesome/free-solid-svg-icons'; 13 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:14:24 TS2305: Module '"@/helpers"' has no exported member 'formatIp'. 12 | } from '@fortawesome/free-solid-svg-icons'; 13 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:14:34 TS2305: Module '"@/helpers"' has no exported member 'megabytesToHuman'. 12 | } from '@fortawesome/free-solid-svg-icons'; 13 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:77:82 TS2339: Property 'isInstalling' does not exist on type 'Server'. 75 | 76 | const name = ServerContext.useStoreState(state => state.server.data!.name);
ERROR in resources/scripts/components/server/StatGraphs.tsx:34: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'. 32 | }, 33 | scales: {
ERROR in resources/scripts/components/server/StatGraphs.tsx:42: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'. 40 | }, 41 | } ],
ERROR in resources/scripts/components/server/StatGraphs.tsx:71:63 TS2709: Cannot use namespace 'Chart' as a type. 69 | }); 70 |
ERROR in resources/scripts/components/server/StatGraphs.tsx:77:42 TS2709: Cannot use namespace 'Chart' as a type. 75 | */ 76 | const useChart = (options?: Chart.TickOptions): ChartState => {
ERROR in resources/scripts/components/server/StatGraphs.tsx:82:27 TS2351: This expression is not constructable. Type 'typeof import("/var/www/pterodactyl/node_modules/chart.js/types/index.esm")' has no construct signatures. 80 | if (!node) return; 81 |
ERROR in resources/scripts/components/server/StatGraphs.tsx:90:36 TS2709: Cannot use namespace 'Chart' as a type. 88 | }; 89 |
ERROR in resources/scripts/components/server/StatGraphs.tsx:90:75 TS2694: Namespace '"/var/www/pterodactyl/node_modules/chart.js/types/index.esm"' has no exported member 'ChartPoint'. 88 | }; 89 |
ERROR in resources/scripts/components/server/StatGraphs.tsx:104:76 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'.
102 |
103 | const previous = useRef<Record<'tx' | 'rx', number>>({ tx: -1, rx: -1 });
ERROR in resources/scripts/components/server/StatGraphs.tsx:105:83 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'.
103 | const previous = useRef<Record<'tx' | 'rx', number>>({ tx: -1, rx: -1 });
104 | const [ cpuRef, cpu ] = useChart({ callback: (value) =>
${value}%
, suggestedMax: limits.cpu });ERROR in resources/scripts/components/server/StatGraphs.tsx:106:36 TS2345: Argument of type '{ callback: (this: Scale, value: string | number) => string; }' is not assignable to parameter of type 'TickOptions'.
Type '{ callback: (this: Scale, value: string | number) => string; }' is missing the following properties from type 'TickOptions': backdropColor, backdropPadding, display, color, and 7 more.
104 | const [ cpuRef, cpu ] = useChart({ callback: (value) =>
${value}%
, suggestedMax: limits.cpu }); 105 | const [ memoryRef, memory ] = useChart({ callback: (value) =>${value}Mb
, suggestedMax: limits.memory });ERROR in resources/scripts/components/server/StatGraphs.tsx:107:36 TS2345: Argument of type '{ callback: (this: Scale, value: string | number) => string; }' is not assignable to parameter of type 'TickOptions'.
Type '{ callback: (this: Scale, value: string | number) => string; }' is missing the following properties from type 'TickOptions': backdropColor, backdropPadding, display, color, and 7 more.
105 | const [ memoryRef, memory ] = useChart({ callback: (value) =>
${value}Mb
, suggestedMax: limits.memory }); 106 | const [ txRef, tx ] = useChart({ callback: (value) =>${value}Kb/s
});