Have an issue

19:25:23 INFO: Rebuilding panel assets..
yarn run v1.22.22
$ 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
/var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:141
outputOptions = statsPresetToOptions(outputOptions);
^

TypeError: statsPresetToOptions is not a function
at processOptions (/var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:141:21)
at /var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:364:3
at Object.parse (/var/www/pterodactyl/node_modules/yargs/yargs.js:576:18)
at /var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:49:8
at Object.<anonymous> (/var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:366:3)
at Module._compile (node:internal/modules/cjs/loader:1521:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
at Module.load (node:internal/modules/cjs/loader:1266:32)
at Module._load (node:internal/modules/cjs/loader:1091:12)
at Module.require (node:internal/modules/cjs/loader:1289:19)
at require (node:internal/modules/helpers:182:18)
at runCli (/var/www/pterodactyl/node_modules/webpack/bin/webpack.js:94:3)
at Object.<anonymous> (/var/www/pterodactyl/node_modules/webpack/bin/webpack.js:192:2)
at Module._compile (node:internal/modules/cjs/loader:1521:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
at Module.load (node:internal/modules/cjs/loader:1266:32)
at Module._load (node:internal/modules/cjs/loader:1091:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
at node:internal/main/run_main_module:28:49

Node.js v20.19.5
error Command failed with exit code 1.
19:25:23 INFO: Rebuilding panel assets..
yarn run v1.22.22
$ 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
/var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:141
outputOptions = statsPresetToOptions(outputOptions);
^

TypeError: statsPresetToOptions is not a function
at processOptions (/var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:141:21)
at /var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:364:3
at Object.parse (/var/www/pterodactyl/node_modules/yargs/yargs.js:576:18)
at /var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:49:8
at Object.<anonymous> (/var/www/pterodactyl/node_modules/webpack-cli/bin/cli.js:366:3)
at Module._compile (node:internal/modules/cjs/loader:1521:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
at Module.load (node:internal/modules/cjs/loader:1266:32)
at Module._load (node:internal/modules/cjs/loader:1091:12)
at Module.require (node:internal/modules/cjs/loader:1289:19)
at require (node:internal/modules/helpers:182:18)
at runCli (/var/www/pterodactyl/node_modules/webpack/bin/webpack.js:94:3)
at Object.<anonymous> (/var/www/pterodactyl/node_modules/webpack/bin/webpack.js:192:2)
at Module._compile (node:internal/modules/cjs/loader:1521:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
at Module.load (node:internal/modules/cjs/loader:1266:32)
at Module._load (node:internal/modules/cjs/loader:1091:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:164:12)
at node:internal/main/run_main_module:28:49

Node.js v20.19.5
error Command failed with exit code 1.
7 Replies
Emma
Emma2mo ago
Did you happen to install dependencies with npm instead of yarn?
SirPlancake
SirPlancakeOP2mo ago
I used yarn
Emma
Emma2mo ago
Could you rm -r node_modules then run yarn install just in case?
SirPlancake
SirPlancakeOP2mo ago
sure
Emma
Emma2mo ago
After that, run blueprint -rerun-install
SirPlancake
SirPlancakeOP2mo ago
alright Still seems to do it
Blueprint
Blueprint2mo ago
1. Remove certain files and directories with rm -r resources public node_modules. 2. Go through the Pterodactyl update documentation. 3. Install dependencies by running the yarn command. 4. Repair Blueprint with blueprint -upgrade. 5. Get some Blueprint extensions (if you haven't already) and install them onto your panel.
Sent by prplwtf • byte snippet-upgrade

Did you find this page helpful?