error for resources/scripts/routers/ServerElements

ERROR in resources/scripts/routers/ServerElements.tsx:65:24
TS2719: Type 'ServerRouteDefinition' is not assignable to type 'ServerRouteDefinition'. Two different types with this name exist, but they are unrelated.
Types of property 'name' are incompatible.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
63 | route.permission ? (
64 | <Can key={route.path} action={route.permission} matchAny>
> 65 | <NavItem route={route} />
| ^^^^^
66 | </Can>
67 | ) : (
68 | <React.Fragment key={route.path}>

ERROR in resources/scripts/routers/ServerElements.tsx:69:24
TS2719: Type 'ServerRouteDefinition' is not assignable to type 'ServerRouteDefinition'. Two different types with this name exist, but they are unrelated.
67 | ) : (
68 | <React.Fragment key={route.path}>
> 69 | <NavItem route={route} />
| ^^^^^
70 | </React.Fragment>
71 | )
72 | )}
ERROR in resources/scripts/routers/ServerElements.tsx:65:24
TS2719: Type 'ServerRouteDefinition' is not assignable to type 'ServerRouteDefinition'. Two different types with this name exist, but they are unrelated.
Types of property 'name' are incompatible.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
63 | route.permission ? (
64 | <Can key={route.path} action={route.permission} matchAny>
> 65 | <NavItem route={route} />
| ^^^^^
66 | </Can>
67 | ) : (
68 | <React.Fragment key={route.path}>

ERROR in resources/scripts/routers/ServerElements.tsx:69:24
TS2719: Type 'ServerRouteDefinition' is not assignable to type 'ServerRouteDefinition'. Two different types with this name exist, but they are unrelated.
67 | ) : (
68 | <React.Fragment key={route.path}>
> 69 | <NavItem route={route} />
| ^^^^^
70 | </React.Fragment>
71 | )
72 | )}
6 Replies
Emma
Emma13mo ago
@wuzuantw Do you have any non-Blueprint addons/themes installed?
wuzuantw
wuzuantwOP13mo ago
yes Stellar Theme
Emma
Emma13mo ago
Well there's your problem. Could you follow the following commands?
Blueprint
Blueprint13mo 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 remote blueprintframework/fallback. 5. Get some Blueprint extensions (if you haven't already) and install them onto your panel.
byte snippet-upgrade
wuzuantw
wuzuantwOP13mo ago
sorry how to uninstall blueprint i want use my theme i didn't want use blueprint theme
Emma
Emma13mo ago
You'll have to remove all of Blueprint's files from your Pterodactyl directory and update Pterodactyl.

Did you find this page helpful?