$ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production --progress $ cd public/assets && find . \( -name "*.js" -o -name "*.map" \) -type f -delete && rm -rf node_modules/.cache 10% building 1/2 modules 1 active /var/www/pterodactyl/node_modules/babel-loader/lib/index.js??ref--4!/var/www/pterodactyl/resources/scripts/index.tsxBrowserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme 418 modules ERROR in ./resources/scripts/components/server/files/NewDirectoryButton.tsx Module not found: Error: Can't resolve 'pathe' in '/var/www/pterodactyl/resources/scripts/components/server/files' ERROR in ./resources/scripts/components/server/files/FileObjectRow.tsx Module not found: Error: Can't resolve 'pathe' in '/var/www/pterodactyl/resources/scripts/components/server/files' ERROR in ./resources/scripts/components/server/files/FileNameModal.tsx Module not found: Error: Can't resolve 'pathe' in '/var/www/pterodactyl/resources/scripts/components/server/files' ERROR in ./resources/scripts/components/server/files/RenameFileModal.tsx Module not found: Error: Can't resolve 'pathe' in '/var/www/pterodactyl/resources/scripts/components/server/files' ERROR in resources/scripts/components/elements/CopyOnClick.tsx:35:15 TS2578: Unused '@ts-expect-error' directive. 33 | ? React.Children.only(children) 34 | : React.cloneElement(React.Children.only(children), { > 35 | // @ts-expect-error todo: check on this | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 36 | className: classNames(children.props.className || '', 'cursor-pointer'), 37 | onClick: (e: React.MouseEvent) => { 38 | copy(String(text)); ERROR in resources/scripts/components/server/files/FileNameModal.tsx:7:22 TS2307: Cannot find module 'pathe' or its corresponding type declarations. 5 | import Field from '@/components/elements/Field'; 6 | import { ServerContext } from '@/state/server'; > 7 | import { join } from 'pathe'; | ^^^^^^^ 8 | import tw from 'twin.macro'; 9 | import Button from '@/components/elements/Button'; 10 | ERROR in resources/scripts/components/server/files/FileObjectRow.tsx:14:22 TS2307: Cannot find module 'pathe' or its corresponding type declarations. 12 | import SelectFileCheckbox from '@/components/server/files/SelectFileCheckbox'; 13 | import { usePermissions } from '@/plugins/usePermissions'; > 14 | import { join } from 'pathe'; | ^^^^^^^ 15 | import { bytesToString } from '@/lib/formatters'; 16 | import styles from './style.module.css'; 17 | ERROR in resources/scripts/components/server/files/NewDirectoryButton.tsx:5:22 TS2307: Cannot find module 'pathe' or its corresponding type declarations. 3 | import { Form, Formik, FormikHelpers } from 'formik'; 4 | import Field from '@/components/elements/Field'; > 5 | import { join } from 'pathe'; | ^^^^^^^ 6 | import { object, string } from 'yup'; 7 | import createDirectory from '@/api/server/files/createDirectory'; 8 | import tw from 'twin.macro'; ERROR in resources/scripts/components/server/files/RenameFileModal.tsx:5:22 TS2307: Cannot find module 'pathe' or its corresponding type declarations. 3 | import { Form, Formik, FormikHelpers } from 'formik'; 4 | import Field from '@/components/elements/Field'; > 5 | import { join } from 'pathe'; | ^^^^^^^ 6 | import renameFiles from '@/api/server/files/renameFiles'; 7 | import { ServerContext } from '@/state/server'; 8 | import tw from 'twin.macro'; ERROR in resources/scripts/components/server/files/UploadButton.tsx:1:17 TS2614: Module '"axios"' has no exported member 'AxiosProgressEvent'. Did you mean to use 'import AxiosProgressEvent from "axios"' instead? > 1 | import axios, { AxiosProgressEvent } from 'axios'; | ^^^^^^^^^^^^^^^^^^ 2 | import getFileUploadUrl from '@/api/server/files/getFileUploadUrl'; 3 | import tw from 'twin.macro'; 4 | import { Button } from '@/components/elements/button/index'; error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. 10:18:20 INFO: Cleaning up.. 10:18:20 SUCCESS: Update finished! root@localhost:/var/www/pterodactyl#