ERROR in ./resources/scripts/blueprint/extends/routers/routes.ts Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: /var/www/pterodactyl/resources/scripts/blueprint/extends/routers/routes.ts: Unterminated regular expression. (24:5) 22 | account: [ 23 | /* routes/account *//* PlayerlistingAccountRouteStart *//* PlayerlistingAccountRouteEnd */ > 24 | / | ^ 25 | / 26 | ], 27 | server: [ at instantiate (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:72:32) at constructor (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:358:12) at Parser.raise (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:3341:19) at Parser.readRegexp (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:2716:20) at Parser.parseExprAtom (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12943:16) at Parser.parseExprSubscripts (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12643:23) at Parser.parseUpdate (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12622:21) at Parser.parseMaybeUnary (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12593:23) at Parser.parseMaybeUnary (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:10795:20) at Parser.parseMaybeUnaryOrPrivate (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12387:61) at Parser.parseExprOps (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12394:23) at Parser.parseMaybeConditional (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12364:23) at Parser.parseMaybeAssign (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12316:21) at Parser.parseMaybeAssign (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:10725:20) at /var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12274:39 at Parser.allowInAnd (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:14347:12) at Parser.parseMaybeAssignAllowIn (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12274:17) at Parser.parseExprListItem (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:14052:18) at Parser.parseExprList (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:14017:22) at Parser.parseArrayLike (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:13894:26) at Parser.parseArrayLike (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:10098:24) at Parser.parseExprAtom (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12982:23) at Parser.parseExprSubscripts (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12643:23) at Parser.parseUpdate (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12622:21) at Parser.parseMaybeUnary (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12593:23) at Parser.parseMaybeUnary (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:10795:20) at Parser.parseMaybeUnaryOrPrivate (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12387:61) at Parser.parseExprOps (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12394:23) at Parser.parseMaybeConditional (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12364:23) at Parser.parseMaybeAssign (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12316:21) at Parser.parseMaybeAssign (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:10725:20) at /var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12274:39 at Parser.allowInAnd (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:14347:12) at Parser.parseMaybeAssignAllowIn (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:12274:17) at Parser.parseObjectProperty (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:13763:101) at Parser.parseObjPropValue (/var/www/pterodactyl/node_modules/@babel/parser/lib/index.js:13796:100) @ ./resources/scripts/blueprint/extends/routers/ServerRouter.tsx 18:0-39 19:40-55 76:19-34 76:56-71 124:6-21 124:43-58 @ ./resources/scripts/routers/ServerRouter.tsx @ ./resources/scripts/components/App.tsx @ ./resources/scripts/index.tsx @ multi react-hot-loader/patch ./resources/scripts/index.tsx ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:27:24 TS2339: Property 'account' does not exist on type 'number'. 25 | 26 | {/* Blueprint routes */} > 27 | {blueprintRoutes.account.length > 0 && | ^^^^^^^ 28 | blueprintRoutes.account 29 | .filter((route) => !!route.name) 30 | .filter((route) => (route.adminOnly ? rootAdmin : true)) ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:28:25 TS2339: Property 'account' does not exist on type 'number'. 26 | {/* Blueprint routes */} 27 | {blueprintRoutes.account.length > 0 && > 28 | blueprintRoutes.account | ^^^^^^^ 29 | .filter((route) => !!route.name) 30 | .filter((route) => (route.adminOnly ? rootAdmin : true)) 31 | .map(({ path, name, exact = false }) => ( ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:29:20 TS7006: Parameter 'route' implicitly has an 'any' type. 27 | {blueprintRoutes.account.length > 0 && 28 | blueprintRoutes.account > 29 | .filter((route) => !!route.name) | ^^^^^ 30 | .filter((route) => (route.adminOnly ? rootAdmin : true)) 31 | .map(({ path, name, exact = false }) => ( 32 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:30:20 TS7006: Parameter 'route' implicitly has an 'any' type. 28 | blueprintRoutes.account 29 | .filter((route) => !!route.name) > 30 | .filter((route) => (route.adminOnly ? rootAdmin : true)) | ^^^^^ 31 | .map(({ path, name, exact = false }) => ( 32 | 33 | {name} ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:31:19 TS7031: Binding element 'path' implicitly has an 'any' type. 29 | .filter((route) => !!route.name) 30 | .filter((route) => (route.adminOnly ? rootAdmin : true)) > 31 | .map(({ path, name, exact = false }) => ( | ^^^^ 32 | 33 | {name} 34 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:31:25 TS7031: Binding element 'name' implicitly has an 'any' type. 29 | .filter((route) => !!route.name) 30 | .filter((route) => (route.adminOnly ? rootAdmin : true)) > 31 | .map(({ path, name, exact = false }) => ( | ^^^^ 32 | 33 | {name} 34 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:60:30 TS2339: Property 'account' does not exist on type 'number'. 58 | 59 | {/* Blueprint routes */} > 60 | {blueprintRoutes.account.length > 0 && | ^^^^^^^ 61 | blueprintRoutes.account 62 | .filter((route) => (route.adminOnly ? rootAdmin : true)) 63 | .map(({ path, component: Component }) => ( ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:61:31 TS2339: Property 'account' does not exist on type 'number'. 59 | {/* Blueprint routes */} 60 | {blueprintRoutes.account.length > 0 && > 61 | blueprintRoutes.account | ^^^^^^^ 62 | .filter((route) => (route.adminOnly ? rootAdmin : true)) 63 | .map(({ path, component: Component }) => ( 64 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:62:26 TS7006: Parameter 'route' implicitly has an 'any' type. 60 | {blueprintRoutes.account.length > 0 && 61 | blueprintRoutes.account > 62 | .filter((route) => (route.adminOnly ? rootAdmin : true)) | ^^^^^ 63 | .map(({ path, component: Component }) => ( 64 | 65 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:63:25 TS7031: Binding element 'path' implicitly has an 'any' type. 61 | blueprintRoutes.account 62 | .filter((route) => (route.adminOnly ? rootAdmin : true)) > 63 | .map(({ path, component: Component }) => ( | ^^^^ 64 | 65 | 66 | ERROR in resources/scripts/blueprint/extends/routers/DashboardRouter.tsx:63:42 TS7031: Binding element 'Component' implicitly has an 'any' type. 61 | blueprintRoutes.account 62 | .filter((route) => (route.adminOnly ? rootAdmin : true)) > 63 | .map(({ path, component: Component }) => ( | ^^^^^^^^^ 64 | 65 | 66 | ERROR in resources/scripts/blueprint/extends/routers/routes.ts TS1161: Unterminated regular expression literal. ERROR in resources/scripts/blueprint/extends/routers/routes.ts:21:16 TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 19 | } 20 | > 21 | export default { | ^ > 22 | account: [ | ^^^^^^^^^^^^ > 23 | /* routes/account *//* PlayerlistingAccountRouteStart *//* PlayerlistingAccountRouteEnd */ | ^^^^^^^^^^^^ > 24 | / | ^^^^^^^^^^^^ > 25 | / | ^^^^^^^^^^^^ > 26 | ], | ^^^^^^^^^^^^ > 27 | server: [ | ^^^^^^^^^^^^ > 28 | /* routes/server *//* PlayerlistingServerRouteStart */{ path: '/players', permission: null, name: 'Players', component: PlayerlistingYvohvzrsum, adminOnly: false, identifier: 'playerlisting' },/* PlayerlistingServerRouteEnd */ / { | ^^^^^^^^^^^^ > 29 | path: '/players', | ^^^^^^^^^^^^ > 30 | permission: null, | ^^^^^^^^^^^^ > 31 | name: 'Players', | ^^^^^^^^^^^^ > 32 | component: PlayerlistingWsopsdcgrp, | ^^^^^^^^^^^^ > 33 | adminOnly: false, | ^^^^^^^^^^^^ > 34 | identifier: 'playerlisting', | ^^^^^^^^^^^^ > 35 | } /, | ^^^^^^ 36 | ], 37 | } as Routes; 38 | ERROR in resources/scripts/blueprint/extends/routers/routes.ts:24:5 TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. 22 | account: [ 23 | /* routes/account *//* PlayerlistingAccountRouteStart *//* PlayerlistingAccountRouteEnd */ > 24 | / | ^ 25 | / 26 | ], 27 | server: [ ERROR in resources/scripts/blueprint/extends/routers/routes.ts:26:3 TS1109: Expression expected. 24 | / 25 | / > 26 | ], | ^ 27 | server: [ 28 | /* routes/server *//* PlayerlistingServerRouteStart */{ path: '/players', permission: null, name: 'Players', component: PlayerlistingYvohvzrsum, adminOnly: false, identifier: 'playerlisting' },/* PlayerlistingServerRouteEnd */ / { 29 | path: '/players', ERROR in resources/scripts/blueprint/extends/routers/routes.ts:29:7 TS1005: ',' expected. 27 | server: [ 28 | /* routes/server *//* PlayerlistingServerRouteStart */{ path: '/players', permission: null, name: 'Players', component: PlayerlistingYvohvzrsum, adminOnly: false, identifier: 'playerlisting' },/* PlayerlistingServerRouteEnd */ / { > 29 | path: '/players', | ^^^^ 30 | permission: null, 31 | name: 'Players', 32 | component: PlayerlistingWsopsdcgrp, ERROR in resources/scripts/blueprint/extends/routers/routes.ts:29:7 TS2304: Cannot find name 'path'. 27 | server: [ 28 | /* routes/server *//* PlayerlistingServerRouteStart */{ path: '/players', permission: null, name: 'Players', component: PlayerlistingYvohvzrsum, adminOnly: false, identifier: 'playerlisting' },/* PlayerlistingServerRouteEnd */ / { > 29 | path: '/players', | ^^^^ 30 | permission: null, 31 | name: 'Players', 32 | component: PlayerlistingWsopsdcgrp, ERROR in resources/scripts/blueprint/extends/routers/routes.ts:29:11 TS1005: ',' expected. 27 | server: [ 28 | /* routes/server *//* PlayerlistingServerRouteStart */{ path: '/players', permission: null, name: 'Players', component: PlayerlistingYvohvzrsum, adminOnly: false, identifier: 'playerlisting' },/* PlayerlistingServerRouteEnd */ / { > 29 | path: '/players', | ^ 30 | permission: null, 31 | name: 'Players', 32 | component: PlayerlistingWsopsdcgrp, ERROR in resources/scripts/blueprint/extends/routers/routes.ts:30:7 TS2552: Cannot find name 'permission'. Did you mean 'Permissions'? 28 | /* routes/server *//* PlayerlistingServerRouteStart */{ path: '/players', permission: null, name: 'Players', component: PlayerlistingYvohvzrsum, adminOnly: false, identifier: 'playerlisting' },/* PlayerlistingServerRouteEnd */ / { 29 | path: '/players', > 30 | permission: null, | ^^^^^^^^^^ 31 | name: 'Players', 32 | component: PlayerlistingWsopsdcgrp, 33 | adminOnly: false, ERROR in resources/scripts/blueprint/extends/routers/routes.ts:30:17 TS1005: ',' expected. 28 | /* routes/server *//* PlayerlistingServerRouteStart */{ path: '/players', permission: null, name: 'Players', component: PlayerlistingYvohvzrsum, adminOnly: false, identifier: 'playerlisting' },/* PlayerlistingServerRouteEnd */ / { 29 | path: '/players', > 30 | permission: null, | ^ 31 | name: 'Players', 32 | component: PlayerlistingWsopsdcgrp, 33 | adminOnly: false, ERROR in resources/scripts/blueprint/extends/routers/routes.ts:31:11 TS1005: ',' expected. 29 | path: '/players', 30 | permission: null, > 31 | name: 'Players', | ^ 32 | component: PlayerlistingWsopsdcgrp, 33 | adminOnly: false, 34 | identifier: 'playerlisting', ERROR in resources/scripts/blueprint/extends/routers/routes.ts:32:7 TS2304: Cannot find name 'component'. 30 | permission: null, 31 | name: 'Players', > 32 | component: PlayerlistingWsopsdcgrp, | ^^^^^^^^^ 33 | adminOnly: false, 34 | identifier: 'playerlisting', 35 | } /, ERROR in resources/scripts/blueprint/extends/routers/routes.ts:32:16 TS1005: ',' expected. 30 | permission: null, 31 | name: 'Players', > 32 | component: PlayerlistingWsopsdcgrp, | ^ 33 | adminOnly: false, 34 | identifier: 'playerlisting', 35 | } /, ERROR in resources/scripts/blueprint/extends/routers/routes.ts:32:18 TS2304: Cannot find name 'PlayerlistingWsopsdcgrp'. 30 | permission: null, 31 | name: 'Players', > 32 | component: PlayerlistingWsopsdcgrp, | ^^^^^^^^^^^^^^^^^^^^^^^ 33 | adminOnly: false, 34 | identifier: 'playerlisting', 35 | } /, ERROR in resources/scripts/blueprint/extends/routers/routes.ts:33:7 TS2304: Cannot find name 'adminOnly'. 31 | name: 'Players', 32 | component: PlayerlistingWsopsdcgrp, > 33 | adminOnly: false, | ^^^^^^^^^ 34 | identifier: 'playerlisting', 35 | } /, 36 | ], ERROR in resources/scripts/blueprint/extends/routers/routes.ts:33:16 TS1005: ',' expected. 31 | name: 'Players', 32 | component: PlayerlistingWsopsdcgrp, > 33 | adminOnly: false, | ^ 34 | identifier: 'playerlisting', 35 | } /, 36 | ], ERROR in resources/scripts/blueprint/extends/routers/routes.ts:34:7 TS2304: Cannot find name 'identifier'. 32 | component: PlayerlistingWsopsdcgrp, 33 | adminOnly: false, > 34 | identifier: 'playerlisting', | ^^^^^^^^^^ 35 | } /, 36 | ], 37 | } as Routes; ERROR in resources/scripts/blueprint/extends/routers/routes.ts:34:17 TS1005: ',' expected. 32 | component: PlayerlistingWsopsdcgrp, 33 | adminOnly: false, > 34 | identifier: 'playerlisting', | ^ 35 | } /, 36 | ], 37 | } as Routes; ERROR in resources/scripts/blueprint/extends/routers/routes.ts:35:5 TS1137: Expression or comma expected. 33 | adminOnly: false, 34 | identifier: 'playerlisting', > 35 | } /, | ^ 36 | ], 37 | } as Routes; 38 | ERROR in resources/scripts/blueprint/extends/routers/routes.ts:35:8 TS1109: Expression expected. 33 | adminOnly: false, 34 | identifier: 'playerlisting', > 35 | } /, | ^ 36 | ], 37 | } as Routes; 38 | ERROR in resources/scripts/blueprint/extends/routers/routes.ts:36:3 TS1128: Declaration or statement expected. 34 | identifier: 'playerlisting', 35 | } /, > 36 | ], | ^ 37 | } as Routes; 38 | ERROR in resources/scripts/blueprint/extends/routers/routes.ts:36:4 TS1128: Declaration or statement expected. 34 | identifier: 'playerlisting', 35 | } /, > 36 | ], | ^ 37 | } as Routes; 38 | ERROR in resources/scripts/blueprint/extends/routers/routes.ts:37:1 TS1128: Declaration or statement expected. 35 | } /, 36 | ], > 37 | } as Routes; | ^ 38 | ERROR in resources/scripts/blueprint/extends/routers/routes.ts:37:3 TS1434: Unexpected keyword or identifier. 35 | } /, 36 | ], > 37 | } as Routes; | ^^ 38 | ERROR in resources/scripts/blueprint/extends/routers/routes.ts:37:3 TS2304: Cannot find name 'as'. 35 | } /, 36 | ], > 37 | } as Routes; | ^^ 38 | ERROR in resources/scripts/blueprint/extends/routers/routes.ts:37:6 TS2693: 'Routes' only refers to a type, but is being used as a value here. 35 | } /, 36 | ], > 37 | } as Routes; | ^^^^^^ 38 | ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:15:57 TS2339: Property 'server' does not exist on type 'number'. 13 | import blueprintRoutes from './routes'; 14 | > 15 | const blueprintExtensions = [...new Set(blueprintRoutes.server.map((route) => route.identifier))]; | ^^^^^^ 16 | 17 | /** 18 | * Get the route egg IDs for each extension with server routes. ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:15:69 TS7006: Parameter 'route' implicitly has an 'any' type. 13 | import blueprintRoutes from './routes'; 14 | > 15 | const blueprintExtensions = [...new Set(blueprintRoutes.server.map((route) => route.identifier))]; | ^^^^^ 16 | 17 | /** 18 | * Get the route egg IDs for each extension with server routes. ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:22:5 TS2345: Argument of type 'unknown' is not assignable to parameter of type '{ [x: string]: string[]; } | (() => { [x: string]: string[]; })'. 20 | const useExtensionEggs = () => { 21 | const [extensionEggs, setExtensionEggs] = useState<{ [x: string]: string[] }>( > 22 | blueprintExtensions.reduce((prev, current) => ({ ...prev, [current]: ['-1'] }), {}) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 23 | ); 24 | 25 | useEffect(() => { ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:22:54 TS2698: Spread types may only be created from object types. 20 | const useExtensionEggs = () => { 21 | const [extensionEggs, setExtensionEggs] = useState<{ [x: string]: string[] }>( > 22 | blueprintExtensions.reduce((prev, current) => ({ ...prev, [current]: ['-1'] }), {}) | ^^^^^^^ 23 | ); 24 | 25 | useEffect(() => { ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:22:63 TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'. 20 | const useExtensionEggs = () => { 21 | const [extensionEggs, setExtensionEggs] = useState<{ [x: string]: string[] }>( > 22 | blueprintExtensions.reduce((prev, current) => ({ ...prev, [current]: ['-1'] }), {}) | ^^^^^^^^^ 23 | ); 24 | 25 | useEffect(() => { ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:29:95 TS2345: Argument of type '{ id: unknown; }' is not assignable to parameter of type 'string | string[][] | Record | URLSearchParams | undefined'. Types of property 'id' are incompatible. Type 'unknown' is not assignable to type 'string | undefined'. 27 | const newEggs: { [x: string]: string[] } = {}; 28 | for (const id of blueprintExtensions) { > 29 | const resp = await fetch(`/api/client/extensions/blueprint/eggs?${new URLSearchParams({ id })}`); | ^^^^^^ 30 | newEggs[id] = (await resp.json()) as string[]; 31 | } 32 | setExtensionEggs(newEggs); ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:30:17 TS2538: Type 'unknown' cannot be used as an index type. 28 | for (const id of blueprintExtensions) { 29 | const resp = await fetch(`/api/client/extensions/blueprint/eggs?${new URLSearchParams({ id })}`); > 30 | newEggs[id] = (await resp.json()) as string[]; | ^^ 31 | } 32 | setExtensionEggs(newEggs); 33 | })(); ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:71:24 TS2339: Property 'server' does not exist on type 'number'. 69 | 70 | {/* Blueprint routes */} > 71 | {blueprintRoutes.server.length > 0 && | ^^^^^^ 72 | blueprintRoutes.server 73 | .filter((route) => !!route.name) 74 | .filter((route) => (route.adminOnly ? rootAdmin : true)) ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:72:25 TS2339: Property 'server' does not exist on type 'number'. 70 | {/* Blueprint routes */} 71 | {blueprintRoutes.server.length > 0 && > 72 | blueprintRoutes.server | ^^^^^^ 73 | .filter((route) => !!route.name) 74 | .filter((route) => (route.adminOnly ? rootAdmin : true)) 75 | .filter((route) => ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:73:20 TS7006: Parameter 'route' implicitly has an 'any' type. 71 | {blueprintRoutes.server.length > 0 && 72 | blueprintRoutes.server > 73 | .filter((route) => !!route.name) | ^^^^^ 74 | .filter((route) => (route.adminOnly ? rootAdmin : true)) 75 | .filter((route) => 76 | extensionEggs[route.identifier].includes('-1') ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:74:20 TS7006: Parameter 'route' implicitly has an 'any' type. 72 | blueprintRoutes.server 73 | .filter((route) => !!route.name) > 74 | .filter((route) => (route.adminOnly ? rootAdmin : true)) | ^^^^^ 75 | .filter((route) => 76 | extensionEggs[route.identifier].includes('-1') 77 | ? true ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:75:20 TS7006: Parameter 'route' implicitly has an 'any' type. 73 | .filter((route) => !!route.name) 74 | .filter((route) => (route.adminOnly ? rootAdmin : true)) > 75 | .filter((route) => | ^^^^^ 76 | extensionEggs[route.identifier].includes('-1') 77 | ? true 78 | : extensionEggs[route.identifier].find((id) => id === serverEgg?.toString()) ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:80:17 TS7006: Parameter 'route' implicitly has an 'any' type. 78 | : extensionEggs[route.identifier].find((id) => id === serverEgg?.toString()) 79 | ) > 80 | .map((route) => | ^^^^^ 81 | route.permission ? ( 82 | 83 | ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:124:28 TS2339: Property 'server' does not exist on type 'number'. 122 | 123 | {/* Blueprint routes */} > 124 | {blueprintRoutes.server.length > 0 && | ^^^^^^ 125 | blueprintRoutes.server 126 | .filter((route) => (route.adminOnly ? rootAdmin : true)) 127 | .filter((route) => ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:125:29 TS2339: Property 'server' does not exist on type 'number'. 123 | {/* Blueprint routes */} 124 | {blueprintRoutes.server.length > 0 && > 125 | blueprintRoutes.server | ^^^^^^ 126 | .filter((route) => (route.adminOnly ? rootAdmin : true)) 127 | .filter((route) => 128 | extensionEggs[route.identifier].includes('-1') ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:126:24 TS7006: Parameter 'route' implicitly has an 'any' type. 124 | {blueprintRoutes.server.length > 0 && 125 | blueprintRoutes.server > 126 | .filter((route) => (route.adminOnly ? rootAdmin : true)) | ^^^^^ 127 | .filter((route) => 128 | extensionEggs[route.identifier].includes('-1') 129 | ? true ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:127:24 TS7006: Parameter 'route' implicitly has an 'any' type. 125 | blueprintRoutes.server 126 | .filter((route) => (route.adminOnly ? rootAdmin : true)) > 127 | .filter((route) => | ^^^^^ 128 | extensionEggs[route.identifier].includes('-1') 129 | ? true 130 | : extensionEggs[route.identifier].find((id) => id === serverEgg?.toString()) ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:132:23 TS7031: Binding element 'path' implicitly has an 'any' type. 130 | : extensionEggs[route.identifier].find((id) => id === serverEgg?.toString()) 131 | ) > 132 | .map(({ path, permission, component: Component }) => ( | ^^^^ 133 | 134 | 135 | ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:132:29 TS7031: Binding element 'permission' implicitly has an 'any' type. 130 | : extensionEggs[route.identifier].find((id) => id === serverEgg?.toString()) 131 | ) > 132 | .map(({ path, permission, component: Component }) => ( | ^^^^^^^^^^ 133 | 134 | 135 | ERROR in resources/scripts/blueprint/extends/routers/ServerRouter.tsx:132:52 TS7031: Binding element 'Component' implicitly has an 'any' type. 130 | : extensionEggs[route.identifier].find((id) => id === serverEgg?.toString()) 131 | ) > 132 | .map(({ path, permission, component: Component }) => ( | ^^^^^^^^^ 133 | 134 | 135 | ERROR in resources/scripts/helpers/server-routes.ts:4:11 TS2749: 'ServerRouteDefinition' refers to a value, but is being used as a type here. Did you mean 'typeof ServerRouteDefinition'? 2 | 3 | export default function resolveServerRoutes( > 4 | routes: ServerRouteDefinition[], | ^^^^^^^^^^^^^^^^^^^^^ 5 | eggId?: number, 6 | eggsVisibility?: Record 7 | ): ServerRouteDefinition[] { ERROR in resources/scripts/helpers/server-routes.ts:7:4 TS2749: 'ServerRouteDefinition' refers to a value, but is being used as a type here. Did you mean 'typeof ServerRouteDefinition'? 5 | eggId?: number, 6 | eggsVisibility?: Record > 7 | ): ServerRouteDefinition[] { | ^^^^^^^^^^^^^^^^^^^^^ 8 | return routes.filter((route) => { 9 | if (route.path === '/plugin-manager') { 10 | return eggId && eggsVisibility?.[eggId] === true; error Command failed with exit code 2.