Advertisement
Daeden

Untitled

Sep 21st, 2022
1,526
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 18.58 KB | Gaming | 0 0
  1. root@pterodactylpanel ~www/pterodactyl ठyarn run build:production
  2. yarn run v1.22.19
  3. $ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production
  4. $ cd public/assets && find . \( -name "*.js" -o -name "*.map" \) -type f -delete
  5. Hash: f2e38715ef0b500f7799
  6. Version: webpack 4.43.0
  7. Time: 63266ms
  8. Built at: 09/21/2022 10:12:20 PM
  9.  15 assets
  10. Entrypoint main = bundle.4b5ce039.js
  11.  [12] ./node_modules/history/esm/history.js + 2 modules 30.6 KiB {5} [built]
  12.       |    3 modules
  13.  [15] ./node_modules/react-router/esm/react-router.js + 1 modules 29.2 KiB {5} [built]
  14.       |    2 modules
  15.  [17] ./resources/scripts/api/http.ts 4.07 KiB {5} [built]
  16.  [18] ./resources/scripts/state/index.ts + 7 modules 5.07 KiB {5} [built]
  17.       | ./resources/scripts/state/index.ts 359 bytes [built]
  18.       | ./resources/scripts/state/flashes.ts 1.7 KiB [built]
  19.       | ./resources/scripts/state/user.ts 1.54 KiB [built]
  20.       | ./resources/scripts/state/permissions.ts 393 bytes [built]
  21.       | ./resources/scripts/state/settings.ts 177 bytes [built]
  22.       | ./resources/scripts/state/progress.ts 408 bytes [built]
  23.       | ./resources/scripts/api/account/updateAccountEmail.ts 239 bytes [built]
  24.       | ./resources/scripts/api/getSystemPermissions.ts 277 bytes [built]
  25.  [29] ./resources/scripts/helpers.ts 1.08 KiB {5} [built]
  26.  [35] ./node_modules/react-transition-group/esm/index.js + 4 modules 22.6 KiB {5} [built]
  27.       |    5 modules
  28.  [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 51.5 KiB {5} [built]
  29.  [50] ./resources/scripts/state/server/index.ts + 5 modules 5.56 KiB {5} [built]
  30.       | ./resources/scripts/state/server/index.ts 2.34 KiB [built]
  31.       | ./resources/scripts/state/server/socket.ts 284 bytes [built]
  32.       | ./resources/scripts/state/server/files.ts 1.22 KiB [built]
  33.       | ./resources/scripts/state/server/subusers.ts 575 bytes [built]
  34.       | ./resources/scripts/state/server/schedules.ts 584 bytes [built]
  35.       | ./resources/scripts/state/server/databases.ts 584 bytes [built]
  36.  [58] ./resources/scripts/state/hooks.ts 280 bytes {5} [built]
  37.  [81] ./node_modules/react-i18next/dist/es/index.js + 9 modules 30.2 KiB {5} [built]
  38.       |    10 modules
  39.  [96] multi react-hot-loader/patch ./resources/scripts/index.tsx 40 bytes {5} [built]
  40. [150] ./resources/scripts/index.tsx + 22 modules 121 KiB {5} [built]
  41.       | ./resources/scripts/index.tsx 543 bytes [built]
  42.       | ./resources/scripts/i18n.ts 1.08 KiB [built]
  43.       | ./resources/scripts/assets/css/GlobalStylesheet.ts 1.94 KiB [built]
  44.       | ./resources/scripts/api/interceptors.ts 772 bytes [built]
  45.       | ./resources/scripts/assets/tailwind.css 410 bytes [built]
  46.       |     + 18 hidden modules
  47. [402] ./resources/scripts/routers/ServerRouter.tsx + 9 modules 24.5 KiB {6} [built]
  48.       | ./resources/scripts/routers/ServerRouter.tsx 4.21 KiB [built]
  49.       | ./resources/scripts/routers/ServerElements.tsx 4.17 KiB [built]
  50.       | ./resources/scripts/plugins/Websocket.ts 2.46 KiB [built]
  51.       | ./resources/scripts/api/server/getWebsocketToken.ts 354 bytes [built]
  52.       |     + 6 hidden modules
  53. [403] ./resources/scripts/routers/AuthenticationRouter.tsx + 9 modules 30.1 KiB {3} [built]
  54.       | ./resources/scripts/routers/AuthenticationRouter.tsx 1.57 KiB [built]
  55.       | ./resources/scripts/api/auth/login.ts 748 bytes [built]
  56.       | ./resources/scripts/api/auth/requestPasswordResetEmail.ts 295 bytes [built]
  57.       | ./resources/scripts/api/auth/performPasswordReset.ts 432 bytes [built]
  58.       | ./resources/scripts/api/auth/loginCheckpoint.ts 493 bytes [built]
  59.       |     + 5 hidden modules
  60. [405] ./resources/scripts/routers/DashboardRouter.tsx + 3 modules 21.4 KiB {4} [built]
  61.       | ./resources/scripts/routers/DashboardRouter.tsx 1.93 KiB [built]
  62.       | ./resources/scripts/api/server/getServerResourceUsage.ts 767 bytes [built]
  63.       |     + 2 hidden modules
  64.     + 391 hidden modules
  65.  
  66. ERROR in resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx:40:9
  67. TS2554: Expected 2 arguments, but got 1.
  68.     38 |     const submit = ({ code }: Values, { setSubmitting }: FormikHelpers<Values>) => {
  69.     39 |         setPropOverrides(state => ({ ...state, showSpinnerOverlay: true }));
  70.   > 40 |         enableAccountTwoFactor(code)
  71.        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  72.     41 |             .then(tokens => {
  73.     42 |                 setRecoveryTokens(tokens);
  74.     43 |             })
  75.  
  76. ERROR in resources/scripts/components/server/ServerConsole.tsx:10:10
  77. TS2614: Module '"@feature/index"' has no exported member 'EulaModalFeature'. Did you mean to use 'import EulaModalFeature from "@feature/index"' instead?
  78.      8 | import isEqual from 'react-fast-compare';
  79.      9 | import PowerControls from '@/components/server/PowerControls';
  80.   > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
  81.        |          ^^^^^^^^^^^^^^^^
  82.     11 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  83.     12 | import Spinner from '@/components/elements/Spinner';
  84.     13 |
  85.  
  86. ERROR in resources/scripts/components/server/ServerConsole.tsx:10:28
  87. TS2614: Module '"@feature/index"' has no exported member 'JavaVersionModalFeature'. Did you mean to use 'import JavaVersionModalFeature from "@feature/index"' instead?
  88.      8 | import isEqual from 'react-fast-compare';
  89.      9 | import PowerControls from '@/components/server/PowerControls';
  90.   > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
  91.        |                            ^^^^^^^^^^^^^^^^^^^^^^^
  92.     11 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  93.     12 | import Spinner from '@/components/elements/Spinner';
  94.     13 |
  95.  
  96. ERROR in resources/scripts/components/server/ServerConsole.tsx:10:53
  97. TS2614: Module '"@feature/index"' has no exported member 'GSLTokenModalFeature'. Did you mean to use 'import GSLTokenModalFeature from "@feature/index"' instead?
  98.      8 | import isEqual from 'react-fast-compare';
  99.      9 | import PowerControls from '@/components/server/PowerControls';
  100.   > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
  101.        |                                                     ^^^^^^^^^^^^^^^^^^^^
  102.     11 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  103.     12 | import Spinner from '@/components/elements/Spinner';
  104.     13 |
  105.  
  106. ERROR in resources/scripts/components/server/ServerConsole.tsx:10:75
  107. TS2614: Module '"@feature/index"' has no exported member 'PIDLimitModalFeature'. Did you mean to use 'import PIDLimitModalFeature from "@feature/index"' instead?
  108.      8 | import isEqual from 'react-fast-compare';
  109.      9 | import PowerControls from '@/components/server/PowerControls';
  110.   > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
  111.        |                                                                           ^^^^^^^^^^^^^^^^^^^^
  112.     11 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  113.     12 | import Spinner from '@/components/elements/Spinner';
  114.     13 |
  115.  
  116. ERROR in resources/scripts/components/server/ServerConsole.tsx:10:97
  117. TS2614: Module '"@feature/index"' has no exported member 'SteamDiskSpaceFeature'. Did you mean to use 'import SteamDiskSpaceFeature from "@feature/index"' instead?
  118.      8 | import isEqual from 'react-fast-compare';
  119.      9 | import PowerControls from '@/components/server/PowerControls';
  120.   > 10 | import { EulaModalFeature, JavaVersionModalFeature, GSLTokenModalFeature, PIDLimitModalFeature, SteamDiskSpaceFeature } from '@feature/index';
  121.        |                                                                                                 ^^^^^^^^^^^^^^^^^^^^^
  122.     11 | import ErrorBoundary from '@/components/elements/ErrorBoundary';
  123.     12 | import Spinner from '@/components/elements/Spinner';
  124.     13 |
  125.  
  126. ERROR in resources/scripts/components/server/ServerConsole.tsx:20:82
  127. TS2339: Property 'isInstalling' does not exist on type 'Server'.
  128.     18 |
  129.     19 | const ServerConsole = () => {
  130.   > 20 |     const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
  131.        |                                                                                  ^^^^^^^^^^^^
  132.     21 |     const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
  133.     22 |     const eggFeatures = ServerContext.useStoreState(state => state.server.data!.eggFeatures, isEqual);
  134.     23 |
  135.  
  136. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:10
  137. TS2305: Module '"@/helpers"' has no exported member 'bytesToHuman'.
  138.     3 | import { faCircle, faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons';
  139.     4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  140.   > 5 | import { bytesToHuman, megabytesToHuman, formatIp } from '@/helpers';
  141.       |          ^^^^^^^^^^^^
  142.     6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
  143.     7 | import { ServerContext } from '@/state/server';
  144.     8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  145.  
  146. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:24
  147. TS2305: Module '"@/helpers"' has no exported member 'megabytesToHuman'.
  148.     3 | import { faCircle, faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons';
  149.     4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  150.   > 5 | import { bytesToHuman, megabytesToHuman, formatIp } from '@/helpers';
  151.       |                        ^^^^^^^^^^^^^^^^
  152.     6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
  153.     7 | import { ServerContext } from '@/state/server';
  154.     8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  155.  
  156. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:5:42
  157. TS2305: Module '"@/helpers"' has no exported member 'formatIp'.
  158.     3 | import { faCircle, faEthernet, faHdd, faMemory, faMicrochip, faServer } from '@fortawesome/free-solid-svg-icons';
  159.     4 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
  160.   > 5 | import { bytesToHuman, megabytesToHuman, formatIp } from '@/helpers';
  161.       |                                          ^^^^^^^^
  162.     6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
  163.     7 | import { ServerContext } from '@/state/server';
  164.     8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  165.  
  166. ERROR in resources/scripts/components/server/ServerDetailsBlock.tsx:71:82
  167. TS2339: Property 'isInstalling' does not exist on type 'Server'.
  168.     69 |
  169.     70 |     const name = ServerContext.useStoreState(state => state.server.data!.name);
  170.   > 71 |     const isInstalling = ServerContext.useStoreState(state => state.server.data!.isInstalling);
  171.        |                                                                                  ^^^^^^^^^^^^
  172.     72 |     const isTransferring = ServerContext.useStoreState(state => state.server.data!.isTransferring);
  173.     73 |     const limits = ServerContext.useStoreState(state => state.server.data!.limits);
  174.     74 |     const primaryAllocation = ServerContext.useStoreState(state => state.server.data!.allocations.filter(alloc => alloc.isDefault).map(
  175.  
  176. ERROR in resources/scripts/components/server/StatGraphs.tsx:4:10
  177. TS2305: Module '"@/helpers"' has no exported member 'bytesToMegabytes'.
  178.     2 | import Chart, { ChartConfiguration } from 'chart.js';
  179.     3 | import { ServerContext } from '@/state/server';
  180.   > 4 | import { bytesToMegabytes } from '@/helpers';
  181.       |          ^^^^^^^^^^^^^^^^
  182.     5 | import merge from 'deepmerge';
  183.     6 | import TitledGreyBox from '@/components/elements/TitledGreyBox';
  184.     7 | import { faMemory, faMicrochip } from '@fortawesome/free-solid-svg-icons';
  185.  
  186. ERROR in resources/scripts/components/server/StatGraphs.tsx:35:13
  187. 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'.
  188.   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...'.
  189.     Types of property 'reverse' are incompatible.
  190.       Type '() => { ticks: { display: false; }; gridLines: { display: false; }; }[]' is not assignable to type 'boolean | undefined'.
  191.     33 |         },
  192.     34 |         scales: {
  193.   > 35 |             xAxes: [ {
  194.        |             ^^^^^
  195.     36 |                 ticks: {
  196.     37 |                     display: false,
  197.     38 |                 },
  198.  
  199. ERROR in resources/scripts/components/server/StatGraphs.tsx:43:13
  200. 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'.
  201.   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...'.
  202.     Types of property 'reverse' are incompatible.
  203.       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'.
  204.     41 |                 },
  205.     42 |             } ],
  206.   > 43 |             yAxes: [ {
  207.        |             ^^^^^
  208.     44 |                 gridLines: {
  209.     45 |                     drawTicks: false,
  210.     46 |                     color: 'rgba(229, 232, 235, 0.15)',
  211.  
  212. ERROR in resources/scripts/components/server/StatGraphs.tsx:76:44
  213. TS2709: Cannot use namespace 'Chart' as a type.
  214.     74 |     const limits = ServerContext.useStoreState(state => state.server.data!.limits);
  215.     75 |
  216.   > 76 |     const [ memory, setMemory ] = useState<Chart>();
  217.        |                                            ^^^^^
  218.     77 |     const [ cpu, setCpu ] = useState<Chart>();
  219.     78 |
  220.     79 |     const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => {
  221.  
  222. ERROR in resources/scripts/components/server/StatGraphs.tsx:77:38
  223. TS2709: Cannot use namespace 'Chart' as a type.
  224.     75 |
  225.     76 |     const [ memory, setMemory ] = useState<Chart>();
  226.   > 77 |     const [ cpu, setCpu ] = useState<Chart>();
  227.        |                                      ^^^^^
  228.     78 |
  229.     79 |     const memoryRef = useCallback<(node: HTMLCanvasElement | null) => void>(node => {
  230.     80 |         if (!node) {
  231.  
  232. ERROR in resources/scripts/components/server/StatGraphs.tsx:85:17
  233. TS2351: This expression is not constructable.
  234.   Type 'typeof import("/var/www/pterodactyl/node_modules/chart.js/types/index.esm")' has no construct signatures.
  235.     83 |
  236.     84 |         setMemory(
  237.   > 85 |             new Chart(node.getContext('2d')!, chartDefaults({
  238.        |                 ^^^^^
  239.     86 |                 callback: (value) => `${value}Mb  `,
  240.     87 |                 suggestedMax: limits.memory,
  241.     88 |             })),
  242.  
  243. ERROR in resources/scripts/components/server/StatGraphs.tsx:87:17
  244. TS2345: Argument of type '{ callback: (this: Scale<CoreScaleOptions>, value: string | number) => string; suggestedMax: number; }' is not assignable to parameter of type 'TickOptions'.
  245.   Object literal may only specify known properties, and 'suggestedMax' does not exist in type 'TickOptions'.
  246.     85 |             new Chart(node.getContext('2d')!, chartDefaults({
  247.     86 |                 callback: (value) => `${value}Mb  `,
  248.   > 87 |                 suggestedMax: limits.memory,
  249.        |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  250.     88 |             })),
  251.     89 |         );
  252.     90 |     }, []);
  253.  
  254. ERROR in resources/scripts/components/server/StatGraphs.tsx:98:17
  255. TS2351: This expression is not constructable.
  256.   Type 'typeof import("/var/www/pterodactyl/node_modules/chart.js/types/index.esm")' has no construct signatures.
  257.      96 |
  258.      97 |         setCpu(
  259.   >  98 |             new Chart(node.getContext('2d')!, chartDefaults({
  260.         |                 ^^^^^
  261.      99 |                 callback: (value) => `${value}%  `,
  262.     100 |                 suggestedMax: limits.cpu,
  263.     101 |             })),
  264.  
  265. ERROR in resources/scripts/components/server/StatGraphs.tsx:100:17
  266. TS2345: Argument of type '{ callback: (this: Scale<CoreScaleOptions>, value: string | number) => string; suggestedMax: number; }' is not assignable to parameter of type 'TickOptions'.
  267.   Object literal may only specify known properties, and 'suggestedMax' does not exist in type 'TickOptions'.
  268.      98 |             new Chart(node.getContext('2d')!, chartDefaults({
  269.      99 |                 callback: (value) => `${value}%  `,
  270.   > 100 |                 suggestedMax: limits.cpu,
  271.         |                 ^^^^^^^^^^^^^^^^^^^^^^^^
  272.     101 |             })),
  273.     102 |         );
  274.     103 |     }, []);
  275. error Command failed with exit code 2.
  276. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
  277. yarn run build:production  157.48s user 4.36s system 240% cpu 1:07.20 total
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement