framework icon indicating copy to clipboard operation
framework copied to clipboard

Pterodactyl v1.12 is incompatible

Open Nullifii opened this issue 10 months ago • 14 comments

Current Behavior

when running sudo blueprint -upgrade I get the following errors, the updater fails to finish the installation.

21:15:03 INFO: Fetching version info
21:15:04 INFO: Downloading repository..
Cloning into '.update/repo'...
remote: Enumerating objects: 10837, done.
remote: Counting objects: 100% (289/289), done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 10837 (delta 228), reused 193 (delta 193), pack-reused 10548 (from 4)
Receiving objects: 100% (10837/10837), 9.57 MiB | 13.27 MiB/s, done.
Resolving deltas: 100% (4962/4962), done.
21:15:05 INFO: Deleting files..
21:15:05 INFO: Running update script..
21:15:05 INFO: Copying release files to Pterodactyl directory..
21:15:05 INFO: Running final install script..
21:15:05 INFO: Installing node modules..
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.24s.
21:15:06 INFO: Searching and validating framework dependencies..
21:15:06 INFO: Placing Blueprint command shortcut..
21:15:06 INFO: Linking directories and filesystems..
21:15:06 INPUT: Would you like to put your application into maintenance while Blueprint is installing? (Y/n)
n
21:15:10 INFO: Putting application into maintenance has been skipped.
21:15:10 INFO: Running database migrations..

   INFO  Nothing to migrate.

21:15:10 INFO: Seeding Blueprint database records..
21:15:11 INFO: Flushing cache..
21:15:12 INFO: Restarting queue workers..
21:15:12 INFO: Changing Pterodactyl file ownership to 'www-data:www-data'..
21:15:12 INFO: Cleaning up..
21:15:12 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 && 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<HTMLElement>) => {
    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.
21:15:25 INFO: Cleaning up..
21:15:25 SUCCESS: Update finished!

Expected Behavior

Updater finishes without errors.

Steps to Reproduce

Using Ubuntu Server 24.04.3 LTS, have an installation of Panel version of v1.11.11 with an existing installation of blueprint.

Upgrade Panel/Wings to v1.12.0, after upgrading finishes use the blueprint -upgrade command with elevated privileges.

While the upgrader is running, the errors listed above should be reproduced.

Blueprint Version

beta-2025-12

Panel Version

v1.12.0

Is there an existing issue for this?

  • [x] I have searched the existing issues before opening this issue.
  • [x] I have provided all relevant details and tested my reproduction steps.
  • [x] I have checked to my best capabilities and believe this is a bug with the software, and not a configuration issue with my specific system.
  • [x] I have made sure to check that this bug is the fault of Blueprint and is not caused by stock Pterodactyl.

Nullifii avatar Jan 06 '26 02:01 Nullifii

Seems like some simple misspellings in the import tables but idk much about all of this 😅

Nullifii avatar Jan 06 '26 02:01 Nullifii

Same problem on my system.

Soapy7261 avatar Jan 06 '26 04:01 Soapy7261

Blueprint is incompatible with the latest version of Pterodactyl. Someone made a temporary fix in their Discord so I don't believe it will be long before an official fix

PenguCCN avatar Jan 06 '26 04:01 PenguCCN

Hi,

I am currently on my break until January 12th. After the break, I'll be able to work on the update.

prplwtf avatar Jan 06 '26 05:01 prplwtf

SAME PROBLEM I FACE

mindfexserver-max avatar Jan 07 '26 06:01 mindfexserver-max

Shoutout to ShadowDude in the Discord for this temp fix:

In all 4 files: resources/scripts/components/server/files/FileNameModal.tsx resources/scripts/components/server/files/FileObjectRow.tsx resources/scripts/components/server/files/NewDirectoryButton.tsx resources/scripts/components/server/files/RenameFileModal.tsx Remove import { join } from 'pathe'; Add const join = (...paths: string[]) => paths.filter(Boolean).join('/');

In: resources/scripts/components/server/files/UploadButton.tsx Replace import axios, { AxiosProgressEvent } from 'axios'; with import axios from 'axios'; Replace AxiosProgressEvent with ProgressEvent

In: resources/scripts/components/elements/CopyOnClick.tsx Remove // @ts-expect-error todo: check on this

In: app/Enum/ResourceLimit.php (If you want console to load) Remove: Assert::isInstanceOf($server = $request->route()->parameter('server'), Server::class); Below where that went, add:

$server = $request->route()?->parameter('server');

if (is_string($server) || !$server instanceof Server) {
    return Limit::none();
}

Then just blueprint -rerun-install

PenguCCN avatar Jan 07 '26 09:01 PenguCCN

Shoutout to ShadowDude in the Discord for this temp fix:

In all 4 files: resources/scripts/components/server/files/FileNameModal.tsx resources/scripts/components/server/files/FileObjectRow.tsx resources/scripts/components/server/files/NewDirectoryButton.tsx resources/scripts/components/server/files/RenameFileModal.tsx Remove import { join } from 'pathe'; Add const join = (...paths: string[]) => paths.filter(Boolean).join('/');

In: resources/scripts/components/server/files/UploadButton.tsx Replace import axios, { AxiosProgressEvent } from 'axios'; with import axios from 'axios'; Replace AxiosProgressEvent with ProgressEvent

In: resources/scripts/components/elements/CopyOnClick.tsx Remove // @ts-expect-error todo: check on this

In: app/Enum/ResourceLimit.php (If you want console to load) Remove: Assert::isInstanceOf($server = $request->route()->parameter('server'), Server::class); Below where that went, add:

$server = $request->route()?->parameter('server');

if (is_string($server) || !$server instanceof Server) {
    return Limit::none();
}

Then just blueprint -rerun-install

https://discord.com/channels/1063548024825057451/1457906588844167361/1457914882530742353 Linking the msg this came from

thecrazytech1 avatar Jan 07 '26 09:01 thecrazytech1

Hi,

Sending "I'm experiencing the same issue" will not speed up getting it resolved. Please use reactions instead if you want to "+1" an issue.

Thanks.

prplwtf avatar Jan 07 '26 14:01 prplwtf

@Davidbutacu12123 @vlsho

Please take at least 5 seconds to read my reply from earlier in this thread.

prplwtf avatar Jan 10 '26 14:01 prplwtf

Please update blueprint @prplwtf

mindfexserver-max avatar Jan 11 '26 16:01 mindfexserver-max

Hi.

This issue has been locked.

If you would like to contribute updated files, please create a pull request.

Duplicate issues will be closed and locked without further context.

prplwtf avatar Jan 11 '26 17:01 prplwtf

https://github.com/BlueprintFramework/framework/pull/197#issuecomment-3753495262

prplwtf avatar Jan 15 '26 08:01 prplwtf

This issue has been unlocked and additional discussion is permitted.

If you are experiencing any issues with the latest release, learn how to open a proper support/bug report request.

prplwtf avatar Jan 16 '26 16:01 prplwtf