Guest User

HELP

a guest
Jun 21st, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.93 KB | None | 0 0
  1. root@vmi2221039:/var/www/pterodactyl# blueprint -rerun-install
  2. 18:51:12 WARNING: This is an advanced feature, only proceed if you know what you are doing.
  3.  
  4. ██▌▌▌ Blueprint Framework
  5. ██ ██▌▌▌ https://blueprint.zip
  6. ████▌▌▌ © 2023-2024 Emma (prpl.wtf)
  7.  
  8. 18:51:12 INFO: Searching and validating framework dependencies..
  9. 18:51:12 INFO: Placing Blueprint command shortcut..
  10. 18:51:12 INFO: Linking directories and filesystems..
  11. 18:51:12 INPUT: Would you like to put your application into maintenance while Blueprint is installing? (Y/n)
  12. Y
  13. 18:51:15 INFO: Put application into maintenance mode.
  14. 18:51:15 INFO: Flushing cache..
  15. 18:51:17 INFO: Running database migrations..
  16.  
  17. INFO Nothing to migrate.
  18.  
  19. 18:51:17 INFO: Seeding Blueprint database records..
  20. 18:51:17 INFO: Changing Pterodactyl file ownership to 'www-data:www-data'..
  21. 18:51:18 INFO: Rebuilding panel assets..
  22. yarn run v1.22.22
  23. $ yarn run clean && cross-env NODE_ENV=production ./node_modules/.bin/webpack --mode production --progress
  24. $ cd public/assets && find . \( -name "*.js" -o -name "*.map" \) -type f -delete
  25. 10% building 1/2 modules 1 active /var/www/pterodactyl/node_modules/babel-loader/lib/index.js!/var/www/pterodactyl/resources/scripts/index.tsxBrowserslist: caniuse-lite is outdated. Please run:
  26. npx update-browserslist-db@latest
  27. Why you should do it regularly: https://github.com/browserslist/update-db#readme
  28. Hash: 239192c80de571563343
  29. Version: webpack 4.43.0
  30. Time: 27127ms
  31. Built at: 06/21/2025 6:51:46 PM
  32. 15 assets
  33. Entrypoint main = bundle.ad42d4b2.js
  34. [12] ./node_modules/history/esm/history.js + 2 modules 30.6 KiB {5} [built]
  35. | 3 modules
  36. [15] ./node_modules/react-router/esm/react-router.js + 1 modules 29.2 KiB {5} [built]
  37. | 2 modules
  38. [17] ./resources/scripts/api/http.ts 4.07 KiB {5} [built]
  39. [18] ./resources/scripts/state/index.ts + 7 modules 5.07 KiB {5} [built]
  40. | ./resources/scripts/state/index.ts 359 bytes [built]
  41. | ./resources/scripts/state/flashes.ts 1.7 KiB [built]
  42. | ./resources/scripts/state/user.ts 1.54 KiB [built]
  43. | ./resources/scripts/state/permissions.ts 393 bytes [built]
  44. | ./resources/scripts/state/settings.ts 177 bytes [built]
  45. | ./resources/scripts/state/progress.ts 408 bytes [built]
  46. | ./resources/scripts/api/account/updateAccountEmail.ts 239 bytes [built]
  47. | ./resources/scripts/api/getSystemPermissions.ts 277 bytes [built]
  48. [29] ./resources/scripts/helpers.ts 1.08 KiB {5} [built]
  49. [37] ./node_modules/react-transition-group/esm/index.js + 4 modules 22.6 KiB {5} [built]
  50. | 5 modules
  51. [51] ./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/postcss-loader/dist/cjs.js??ref--6-2!./resources/scripts/assets/tailwind.css 64.8 KiB {5} [built]
  52. [52] ./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/postcss-loader/dist/cjs.js??ref--6-2!./resources/scripts/blueprint/css/extensions.css 426 bytes {5} [built]
  53. [53] ./resources/scripts/state/server/index.ts + 5 modules 5.83 KiB {5} [built]
  54. | ./resources/scripts/state/server/index.ts 2.38 KiB [built]
  55. | ./resources/scripts/state/server/socket.ts 284 bytes [built]
  56. | ./resources/scripts/state/server/files.ts 1.45 KiB [built]
  57. | ./resources/scripts/state/server/subusers.ts 575 bytes [built]
  58. | ./resources/scripts/state/server/schedules.ts 584 bytes [built]
  59. | ./resources/scripts/state/server/databases.ts 584 bytes [built]
  60. [82] ./node_modules/react-i18next/dist/es/index.js + 9 modules 30.2 KiB {5} [built]
  61. | 10 modules
  62. [98] multi react-hot-loader/patch ./resources/scripts/index.tsx 40 bytes {5} [built]
  63. [152] ./resources/scripts/index.tsx + 23 modules 122 KiB {5} [built]
  64. | ./resources/scripts/index.tsx 584 bytes [built]
  65. | ./resources/scripts/blueprint/css/extensions.css 421 bytes [built]
  66. | ./resources/scripts/i18n.ts 1.08 KiB [built]
  67. | ./resources/scripts/assets/css/GlobalStylesheet.ts 1.94 KiB [built]
  68. | ./resources/scripts/api/interceptors.ts 772 bytes [built]
  69. | ./resources/scripts/assets/tailwind.css 410 bytes [built]
  70. | + 18 hidden modules
  71. [420] ./resources/scripts/routers/AuthenticationRouter.tsx + 13 modules 58.1 KiB {3} [built]
  72. | ./resources/scripts/routers/AuthenticationRouter.tsx 1.57 KiB [built]
  73. | ./resources/scripts/api/auth/login.ts 748 bytes [built]
  74. | ./resources/scripts/api/auth/requestPasswordResetEmail.ts 295 bytes [built]
  75. | ./resources/scripts/api/auth/performPasswordReset.ts 432 bytes [built]
  76. | ./resources/scripts/api/auth/loginCheckpoint.ts 493 bytes [built]
  77. | ./resources/scripts/blueprint/extensions/huxregister/sections/RegisterElement.tsx 25.1 KiB [built]
  78. | ./resources/scripts/blueprint/extensions/huxregister/sections/CustomModal.tsx 2.04 KiB [built]
  79. | + 7 hidden modules
  80. [421] ./resources/scripts/routers/DashboardRouter.tsx + 12 modules 25.7 KiB {4} [built]
  81. | ./resources/scripts/routers/DashboardRouter.tsx 1.22 KiB [built]
  82. | ./resources/scripts/blueprint/extends/routers/DashboardRouter.tsx 2.74 KiB [built]
  83. | ./resources/scripts/api/server/getServerResourceUsage.ts 767 bytes [built]
  84. | + 10 hidden modules
  85. [423] ./resources/scripts/routers/ServerRouter.tsx + 9 modules 24.8 KiB {6} [built]
  86. | ./resources/scripts/routers/ServerRouter.tsx 3.91 KiB [built]
  87. | ./resources/scripts/blueprint/extends/routers/ServerRouter.tsx 6.29 KiB [built]
  88. | ./resources/scripts/plugins/Websocket.ts 2.46 KiB [built]
  89. | ./resources/scripts/api/server/getWebsocketToken.ts 354 bytes [built]
  90. | + 6 hidden modules
  91. + 410 hidden modules
  92.  
  93. ERROR in resources/scripts/components/dashboard/forms/AppearanceWrapper.tsx:21:96
  94. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  95. 19 | });
  96. 20 |
  97. > 21 | const modeToggler = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.modeToggler));
  98. | ^^^^
  99. 22 | const langSwitch = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.langSwitch));
  100. 23 | const defaultMode = useStoreState((state: ApplicationStore) => state.settings.data!.arix.defaultMode);
  101. 24 |
  102.  
  103. ERROR in resources/scripts/components/dashboard/forms/AppearanceWrapper.tsx:22:95
  104. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  105. 20 |
  106. 21 | const modeToggler = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.modeToggler));
  107. > 22 | const langSwitch = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.langSwitch));
  108. | ^^^^
  109. 23 | const defaultMode = useStoreState((state: ApplicationStore) => state.settings.data!.arix.defaultMode);
  110. 24 |
  111. 25 | const languages = [
  112.  
  113. ERROR in resources/scripts/components/dashboard/forms/AppearanceWrapper.tsx:23:89
  114. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  115. 21 | const modeToggler = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.modeToggler));
  116. 22 | const langSwitch = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.langSwitch));
  117. > 23 | const defaultMode = useStoreState((state: ApplicationStore) => state.settings.data!.arix.defaultMode);
  118. | ^^^^
  119. 24 |
  120. 25 | const languages = [
  121. 26 | { key: 'en', value: 'English' },
  122.  
  123. ERROR in resources/scripts/components/dashboard/ServerCardBanner.tsx:59:162
  124. TS2339: Property 'eggImage' does not exist on type 'Server'.
  125. 57 | <>
  126. 58 | <div className="bg-gray-700 backdrop overflow-hidden rounded-box">
  127. > 59 | <div className="flex z-10 items-center justify-between bg-center bg-cover bg-no-repeat px-6 pt-5 pb-10 relative" css={`background-image:url(${server.eggImage ? server.eggImage : '/arix/minecraft-banner.png'})`}>
  128. | ^^^^^^^^
  129. 60 | <div className="z-[-1] absolute inset-0" css={'background-color:color-mix(in srgb, var(--gray700-default) 65%, transparent);'}/>
  130. 61 | <p className="text-lg font-semibold text-gray-50">{server.name}</p>
  131. 62 | <span className={`py-1 px-2 rounded
  132.  
  133. ERROR in resources/scripts/components/dashboard/ServerCardBanner.tsx:59:180
  134. TS2339: Property 'eggImage' does not exist on type 'Server'.
  135. 57 | <>
  136. 58 | <div className="bg-gray-700 backdrop overflow-hidden rounded-box">
  137. > 59 | <div className="flex z-10 items-center justify-between bg-center bg-cover bg-no-repeat px-6 pt-5 pb-10 relative" css={`background-image:url(${server.eggImage ? server.eggImage : '/arix/minecraft-banner.png'})`}>
  138. | ^^^^^^^^
  139. 60 | <div className="z-[-1] absolute inset-0" css={'background-color:color-mix(in srgb, var(--gray700-default) 65%, transparent);'}/>
  140. 61 | <p className="text-lg font-semibold text-gray-50">{server.name}</p>
  141. 62 | <span className={`py-1 px-2 rounded
  142.  
  143. ERROR in resources/scripts/components/dashboard/ServerCardGradient.tsx:59:124
  144. TS2339: Property 'eggImage' does not exist on type 'Server'.
  145. 57 | <>
  146. 58 | <div className="backdrop rounded-box overflow-hidden" css={'background-color:var(--gray700-default);'}>
  147. > 59 | <div className={'bg-center bg-cover bg-no-repeat relative px-6 pt-5 z-10'} css={`background-image:url(${server.eggImage ? server.eggImage : '/arix/minecraft-banner.png'})`}>
  148. | ^^^^^^^^
  149. 60 | <div className={'z-[-1] absolute inset-0'} css={'background-image:linear-gradient(0deg, var(--gray700-default) 0%, color-mix(in srgb, var(--gray700-default) 65%, transparent) 100%);'}/>
  150. 61 | <div className="flex items-center justify-between pb-5">
  151. 62 | <p className="text-lg font-semibold text-gray-50">{server.name}</p>
  152.  
  153. ERROR in resources/scripts/components/dashboard/ServerCardGradient.tsx:59:142
  154. TS2339: Property 'eggImage' does not exist on type 'Server'.
  155. 57 | <>
  156. 58 | <div className="backdrop rounded-box overflow-hidden" css={'background-color:var(--gray700-default);'}>
  157. > 59 | <div className={'bg-center bg-cover bg-no-repeat relative px-6 pt-5 z-10'} css={`background-image:url(${server.eggImage ? server.eggImage : '/arix/minecraft-banner.png'})`}>
  158. | ^^^^^^^^
  159. 60 | <div className={'z-[-1] absolute inset-0'} css={'background-image:linear-gradient(0deg, var(--gray700-default) 0%, color-mix(in srgb, var(--gray700-default) 65%, transparent) 100%);'}/>
  160. 61 | <div className="flex items-center justify-between pb-5">
  161. 62 | <p className="text-lg font-semibold text-gray-50">{server.name}</p>
  162.  
  163. ERROR in resources/scripts/components/elements/Alert.tsx:4:110
  164. TS2307: Cannot find module 'react-icons/lu' or its corresponding type declarations.
  165. 2 | import { useStoreState } from 'easy-peasy';
  166. 3 | import { ApplicationStore } from '@/state';
  167. > 4 | import { LuPartyPopper, LuMegaphone, LuInfo, LuCircleAlert, LuTriangleAlert, LuCircleCheck, LuCircleX } from "react-icons/lu";
  168. | ^^^^^^^^^^^^^^^^
  169. 5 | import parser from 'bbcode-to-react';
  170. 6 | import styled from 'styled-components/macro';
  171. 7 | import tw from 'twin.macro';
  172.  
  173. ERROR in resources/scripts/components/elements/Alert.tsx:5:20
  174. TS2307: Cannot find module 'bbcode-to-react' or its corresponding type declarations.
  175. 3 | import { ApplicationStore } from '@/state';
  176. 4 | import { LuPartyPopper, LuMegaphone, LuInfo, LuCircleAlert, LuTriangleAlert, LuCircleCheck, LuCircleX } from "react-icons/lu";
  177. > 5 | import parser from 'bbcode-to-react';
  178. | ^^^^^^^^^^^^^^^^^
  179. 6 | import styled from 'styled-components/macro';
  180. 7 | import tw from 'twin.macro';
  181. 8 |
  182.  
  183. ERROR in resources/scripts/components/elements/Alert.tsx:45:94
  184. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  185. 43 | const [isOpen, setIsOpen] = useState(true);
  186. 44 |
  187. > 45 | const announcementType = useStoreState((state: ApplicationStore) => state.settings.data!.arix.announcementType);
  188. | ^^^^
  189. 46 | const announcementCloseable = useStoreState((state: ApplicationStore) => state.settings.data!.arix.announcementCloseable);
  190. 47 | const announcementMessage = useStoreState((state: ApplicationStore) => state.settings.data!.arix.announcementMessage);
  191. 48 |
  192.  
  193. ERROR in resources/scripts/components/elements/Alert.tsx:46:99
  194. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  195. 44 |
  196. 45 | const announcementType = useStoreState((state: ApplicationStore) => state.settings.data!.arix.announcementType);
  197. > 46 | const announcementCloseable = useStoreState((state: ApplicationStore) => state.settings.data!.arix.announcementCloseable);
  198. | ^^^^
  199. 47 | const announcementMessage = useStoreState((state: ApplicationStore) => state.settings.data!.arix.announcementMessage);
  200. 48 |
  201. 49 | useEffect(() => {
  202.  
  203. ERROR in resources/scripts/components/elements/Alert.tsx:47:97
  204. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  205. 45 | const announcementType = useStoreState((state: ApplicationStore) => state.settings.data!.arix.announcementType);
  206. 46 | const announcementCloseable = useStoreState((state: ApplicationStore) => state.settings.data!.arix.announcementCloseable);
  207. > 47 | const announcementMessage = useStoreState((state: ApplicationStore) => state.settings.data!.arix.announcementMessage);
  208. | ^^^^
  209. 48 |
  210. 49 | useEffect(() => {
  211. 50 | const closedTime = localStorage.getItem('closedTime');
  212.  
  213. ERROR in resources/scripts/components/Navigation.tsx:10:39
  214. TS2307: Cannot find module 'react-icons/lu' or its corresponding type declarations.
  215. 8 | import CopyOnClick from '@/components/elements/CopyOnClick';
  216. 9 | import { GlobeIcon, ChipIcon, ChevronDownIcon } from '@heroicons/react/outline';
  217. > 10 | import { LuSave, LuMemoryStick } from "react-icons/lu";
  218. | ^^^^^^^^^^^^^^^^
  219. 11 | import styled from 'styled-components/macro';
  220. 12 | import Can from '@/components/elements/Can';
  221. 13 | import { SubNavigationLinks } from '@/routers/RouterElements';
  222.  
  223. ERROR in resources/scripts/components/Navigation.tsx:117:84
  224. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  225. 115 |
  226. 116 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin);
  227. > 117 | const layout = useStoreState((state: ApplicationStore) => state.settings.data!.arix.layout);
  228. | ^^^^
  229. 118 |
  230. 119 | const name = ServerContext.useStoreState((state) => state.server.data?.name);
  231. 120 | const status = ServerContext.useStoreState((state) => state.status.value);
  232.  
  233. ERROR in resources/scripts/components/Navigation.tsx:236:35
  234. TS2322: Type '{ icons: true; className: string; }' is not assignable to type 'IntrinsicAttributes & PowerButtonProps'.
  235. Property 'icons' does not exist on type 'IntrinsicAttributes & PowerButtonProps'.
  236. 234 | <Can action={['control.start', 'control.stop', 'control.restart']} matchAny>
  237. 235 | <PowerButtons className="md:grid grid-cols-3 gap-2 hidden" />
  238. > 236 | <PowerButtons icons className="md:hidden grid-cols-3 gap-2 grid mt-5 pt-5 md:border-t-0 border-t-[2px] border-gray-500" /> | ^^^^^
  239. 237 | </Can>
  240. 238 | </div>
  241. 239 | {layout == 3 &&
  242.  
  243. ERROR in resources/scripts/components/server/console/FullConsoleContainer.tsx:10:26
  244. TS2322: Type '{ fullConsole: true; }' is not assignable to type 'IntrinsicAttributes'.
  245. Property 'fullConsole' does not exist on type 'IntrinsicAttributes'.
  246. 8 | <div>
  247. 9 | <Spinner.Suspense>
  248. > 10 | <Console fullConsole/>
  249. | ^^^^^^^^^^^
  250. 11 | </Spinner.Suspense>
  251. 12 | <div className={'fixed top-0 left-0 h-full w-full z-[50] bg-gray-800'}/>
  252. 13 | </div>
  253.  
  254. ERROR in resources/scripts/components/server/console/SideGraphs.tsx:83:48
  255. TS2322: Type '{ children: Element; title: string; type: string; limit: string; usage: string; }' is not assignable to type 'IntrinsicAttributes & ChartBlockProps'.
  256. Property 'type' does not exist on type 'IntrinsicAttributes & ChartBlockProps'.
  257. 81 | return (
  258. 82 | <>
  259. > 83 | <ChartBlock title={t('cpu-usage')} type={'cpu'} limit={limits.cpu ? limits.cpu + '%' : '∞'} usage={`${stats.cpu.toFixed(2)}%`}>
  260. | ^^^^
  261. 84 | <Line {...cpu.props} />
  262. 85 | </ChartBlock>
  263. 86 | <ChartBlock title={t('memory-usage')} type={'memory'} limit={limits.memory ? bytesToString(mbToBytes(limits.memory)) : '∞'} usage={bytesToString(stats.memory)}>
  264.  
  265. ERROR in resources/scripts/components/server/console/SideGraphs.tsx:86:51
  266. TS2322: Type '{ children: Element; title: string; type: string; limit: string; usage: string; }' is not assignable to type 'IntrinsicAttributes & ChartBlockProps'.
  267. Property 'type' does not exist on type 'IntrinsicAttributes & ChartBlockProps'.
  268. 84 | <Line {...cpu.props} />
  269. 85 | </ChartBlock>
  270. > 86 | <ChartBlock title={t('memory-usage')} type={'memory'} limit={limits.memory ? bytesToString(mbToBytes(limits.memory)) : '∞'} usage={bytesToString(stats.memory)}>
  271. | ^^^^
  272. 87 | <Line {...memory.props} />
  273. 88 | </ChartBlock>
  274. 89 | </>
  275.  
  276. ERROR in resources/scripts/components/server/dashboard/Banner.tsx:5:80
  277. TS2339: Property 'eggImage' does not exist on type 'Server'.
  278. 3 |
  279. 4 | const Banner = () => {
  280. > 5 | const eggImage = ServerContext.useStoreState((state) => state.server.data!.eggImage);
  281. | ^^^^^^^^
  282. 6 |
  283. 7 | return(
  284. 8 | <div className={'lg:col-span-2'}>
  285.  
  286. ERROR in resources/scripts/components/server/dashboard/DashboardContainer.tsx:58:83
  287. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  288. 56 | const DashboardContainer = () => {
  289. 57 | const { t } = useTranslation('arix/server/dashboard');
  290. > 58 | const slot1 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot1);
  291. | ^^^^
  292. 59 | const slot2 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot2);
  293. 60 | const slot3 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot3);
  294. 61 | const slot4 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot4);
  295.  
  296. ERROR in resources/scripts/components/server/dashboard/DashboardContainer.tsx:59:83
  297. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  298. 57 | const { t } = useTranslation('arix/server/dashboard');
  299. 58 | const slot1 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot1);
  300. > 59 | const slot2 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot2);
  301. | ^^^^
  302. 60 | const slot3 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot3);
  303. 61 | const slot4 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot4);
  304. 62 | const slot5 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot5);
  305.  
  306. ERROR in resources/scripts/components/server/dashboard/DashboardContainer.tsx:60:83
  307. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  308. 58 | const slot1 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot1);
  309. 59 | const slot2 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot2);
  310. > 60 | const slot3 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot3);
  311. | ^^^^
  312. 61 | const slot4 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot4);
  313. 62 | const slot5 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot5);
  314. 63 | const slot6 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot6);
  315.  
  316. ERROR in resources/scripts/components/server/dashboard/DashboardContainer.tsx:61:83
  317. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  318. 59 | const slot2 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot2);
  319. 60 | const slot3 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot3);
  320. > 61 | const slot4 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot4);
  321. | ^^^^
  322. 62 | const slot5 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot5);
  323. 63 | const slot6 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot6);
  324. 64 | const slot7 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot7);
  325.  
  326. ERROR in resources/scripts/components/server/dashboard/DashboardContainer.tsx:62:83
  327. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  328. 60 | const slot3 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot3);
  329. 61 | const slot4 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot4);
  330. > 62 | const slot5 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot5);
  331. | ^^^^
  332. 63 | const slot6 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot6);
  333. 64 | const slot7 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot7);
  334. 65 |
  335.  
  336. ERROR in resources/scripts/components/server/dashboard/DashboardContainer.tsx:63:83
  337. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  338. 61 | const slot4 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot4);
  339. 62 | const slot5 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot5);
  340. > 63 | const slot6 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot6);
  341. | ^^^^
  342. 64 | const slot7 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot7);
  343. 65 |
  344. 66 | const isInstalling = ServerContext.useStoreState((state) => state.server.isInstalling);
  345.  
  346. ERROR in resources/scripts/components/server/dashboard/DashboardContainer.tsx:64:83
  347. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  348. 62 | const slot5 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot5);
  349. 63 | const slot6 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot6);
  350. > 64 | const slot7 = useStoreState((state: ApplicationStore) => state.settings.data!.arix.slot7);
  351. | ^^^^
  352. 65 |
  353. 66 | const isInstalling = ServerContext.useStoreState((state) => state.server.isInstalling);
  354. 67 | const isTransferring = ServerContext.useStoreState((state) => state.server.data!.isTransferring);
  355.  
  356. ERROR in resources/scripts/components/server/dashboard/DashboardContainer.tsx:71:52
  357. TS2322: Type '{ children: Element; title: string; icon: (props: SVGProps<SVGSVGElement>) => Element; }' is not assignable to type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
  358. Property 'icon' does not exist on type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
  359. 69 |
  360. 70 | return(
  361. > 71 | <ServerContentBlock title={t('dashboard')} icon={ViewGridIcon}>
  362. | ^^^^
  363. 72 | {(isNodeUnderMaintenance || isInstalling || isTransferring) ? (
  364. 73 | <div>
  365. 74 | <Alert type={'warning'} className={'mb-4'}>
  366.  
  367. ERROR in resources/scripts/components/server/LowResourcesAlert.tsx:29:102
  368. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  369. 27 | const { t } = useTranslation('arix/utilities');
  370. 28 | const [stats, setStats] = useState<Stats>({ memory: 0, cpu: 0, disk: 0, uptime: 0 });
  371. > 29 | const lowResourcesAlert = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.lowResourcesAlert));
  372. | ^^^^
  373. 30 | const billing = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.billing));
  374. 31 |
  375. 32 | const connected = ServerContext.useStoreState((state) => state.socket.connected);
  376.  
  377. ERROR in resources/scripts/components/server/LowResourcesAlert.tsx:30:92
  378. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  379. 28 | const [stats, setStats] = useState<Stats>({ memory: 0, cpu: 0, disk: 0, uptime: 0 });
  380. 29 | const lowResourcesAlert = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.lowResourcesAlert));
  381. > 30 | const billing = String(useStoreState((state: ApplicationStore) => state.settings.data!.arix.billing));
  382. | ^^^^
  383. 31 |
  384. 32 | const connected = ServerContext.useStoreState((state) => state.socket.connected);
  385. 33 | const instance = ServerContext.useStoreState((state) => state.socket.instance);
  386.  
  387. ERROR in resources/scripts/components/server/NodeAlert.tsx:3:26
  388. TS2307: Cannot find module 'react-icons/lu' or its corresponding type declarations.
  389. 1 | import React from 'react';
  390. 2 | import { ServerContext } from '@/state/server';
  391. > 3 | import { LuServer } from "react-icons/lu";
  392. | ^^^^^^^^^^^^^^^^
  393. 4 | import styled from 'styled-components/macro';
  394. 5 | import parser from 'bbcode-to-react';
  395. 6 | import tw from 'twin.macro';
  396.  
  397. ERROR in resources/scripts/components/server/NodeAlert.tsx:5:20
  398. TS2307: Cannot find module 'bbcode-to-react' or its corresponding type declarations.
  399. 3 | import { LuServer } from "react-icons/lu";
  400. 4 | import styled from 'styled-components/macro';
  401. > 5 | import parser from 'bbcode-to-react';
  402. | ^^^^^^^^^^^^^^^^^
  403. 6 | import tw from 'twin.macro';
  404. 7 |
  405. 8 | const MyAlert = styled.div`
  406.  
  407. ERROR in resources/scripts/components/server/NodeAlert.tsx:21:81
  408. TS2339: Property 'nodeAlert' does not exist on type 'Server'.
  409. 19 |
  410. 20 | const NodeAlert = () => {
  411. > 21 | const nodeAlert = ServerContext.useStoreState((state) => state.server.data?.nodeAlert);
  412. | ^^^^^^^^^
  413. 22 |
  414. 23 | return (
  415. 24 | <div className={'px-4'}>
  416.  
  417. ERROR in resources/scripts/components/server/plugins/DeletePlugin.tsx:20:77
  418. TS2339: Property 'plugins' does not exist on type 'Actions<ServerStore>'.
  419. 18 | const [isOpen, setIsOpen] = useState(false);
  420. 19 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid);
  421. > 20 | const removePlugin = ServerContext.useStoreActions((actions) => actions.plugins.removePlugin);
  422. | ^^^^^^^
  423. 21 | const { clearFlashes, addFlash } = useStoreActions((actions: Actions<ApplicationStore>) => actions.flashes);
  424. 22 | const [loading, setLoading] = useState(false);
  425. 23 |
  426.  
  427. ERROR in resources/scripts/components/server/plugins/InstallButton.tsx:10:24
  428. TS2307: Cannot find module 'numify' or its corresponding type declarations.
  429. 8 | import Select from '@/components/elements/Select';
  430. 9 | import { Actions, useStoreActions } from 'easy-peasy';
  431. > 10 | import { numify } from "numify";
  432. | ^^^^^^^^
  433. 11 | import Spinner from '@/components/elements/Spinner';
  434. 12 | import { differenceInCalendarMonths, format, formatDistanceToNow } from 'date-fns';
  435. 13 | import { ExternalLinkIcon, DownloadIcon, StarIcon, CalendarIcon } from '@heroicons/react/outline';
  436.  
  437. ERROR in resources/scripts/components/server/plugins/InstallButton.tsx:40:77
  438. TS2339: Property 'plugins' does not exist on type 'Actions<ServerStore>'.
  439. 38 | const uuid = ServerContext.useStoreState((state) => state.server.data!.uuid);
  440. 39 | const { clearFlashes, addFlash } = useStoreActions((actions: Actions<ApplicationStore>) => actions.flashes);
  441. > 40 | const appendPlugin = ServerContext.useStoreActions((actions) => actions.plugins.appendPlugin);
  442. | ^^^^^^^
  443. 41 |
  444. 42 | const Error = (message?: string) => {
  445. 43 | onDismissed();
  446.  
  447. ERROR in resources/scripts/components/server/plugins/PluginRow.tsx:2:24
  448. TS2307: Cannot find module 'numify' or its corresponding type declarations.
  449. 1 | import React from 'react';
  450. > 2 | import { numify } from "numify";
  451. | ^^^^^^^^
  452. 3 | import { Plugin, QueryParams } from '@/api/server/plugins/Plugins';
  453. 4 | import { differenceInCalendarMonths, format, formatDistanceToNow } from 'date-fns';
  454. 5 | import { ExternalLinkIcon, DownloadIcon, StarIcon, CalendarIcon } from '@heroicons/react/outline';
  455.  
  456. ERROR in resources/scripts/components/server/plugins/PluginRow.tsx:30:90
  457. TS2339: Property 'plugins' does not exist on type 'StateMapper<_Pick<ServerStore, _FilterKeys<ServerStore, ActionTypes, "default">>>'.
  458. 28 | const currentLang = i18n.language;
  459. 29 | const localeKey = currentLang as keyof typeof locales;
  460. > 30 | const installedPlugins = useDeepMemoize(ServerContext.useStoreState((state) => state.plugins.data));
  461. | ^^^^^^^
  462. 31 | const isInstalled = installedPlugins.find((installed) => (
  463. 32 | installed.plugin_service_id === plugin.id && installed.plugin_service === filters.service
  464. 33 | ));
  465.  
  466. ERROR in resources/scripts/components/server/plugins/PluginRow.tsx:31:48
  467. TS7006: Parameter 'installed' implicitly has an 'any' type.
  468. 29 | const localeKey = currentLang as keyof typeof locales;
  469. 30 | const installedPlugins = useDeepMemoize(ServerContext.useStoreState((state) => state.plugins.data));
  470. > 31 | const isInstalled = installedPlugins.find((installed) => (
  471. | ^^^^^^^^^
  472. 32 | installed.plugin_service_id === plugin.id && installed.plugin_service === filters.service
  473. 33 | ));
  474. 34 |
  475.  
  476. ERROR in resources/scripts/components/server/plugins/PluginsContainer.tsx:111:80
  477. TS2339: Property 'plugins' does not exist on type 'Actions<ServerStore>'.
  478. 109 | const [filters, setFilters] = useState<QueryParams>({ page: 1, service: 'modrinth', version: '', loader: '', search: '' });
  479. 110 | const [plugins, setPlugins] = useState<PaginatedResult<Plugin>>();
  480. > 111 | const setInstalledPlugins = ServerContext.useStoreActions((state) => state.plugins.setPlugins);
  481. | ^^^^^^^
  482. 112 | const installedPlugins = useDeepMemoize(ServerContext.useStoreState((state) => state.plugins.data));
  483. 113 |
  484. 114 | const resetFilters = () => {
  485.  
  486. ERROR in resources/scripts/components/server/plugins/PluginsContainer.tsx:112:90
  487. TS2339: Property 'plugins' does not exist on type 'StateMapper<_Pick<ServerStore, _FilterKeys<ServerStore, ActionTypes, "default">>>'.
  488. 110 | const [plugins, setPlugins] = useState<PaginatedResult<Plugin>>();
  489. 111 | const setInstalledPlugins = ServerContext.useStoreActions((state) => state.plugins.setPlugins);
  490. > 112 | const installedPlugins = useDeepMemoize(ServerContext.useStoreState((state) => state.plugins.data));
  491. | ^^^^^^^
  492. 113 |
  493. 114 | const resetFilters = () => {
  494. 115 | setSearchTerm('');
  495.  
  496. ERROR in resources/scripts/components/server/plugins/PluginsContainer.tsx:186:50
  497. TS2322: Type '{ children: Element[]; title: string; icon: (props: SVGProps<SVGSVGElement>) => Element; }' is not assignable to type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
  498. Property 'icon' does not exist on type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
  499. 184 |
  500. 185 | return (
  501. > 186 | <ServerContentBlock title={t('plugins')} icon={DocumentDownloadIcon}>
  502. | ^^^^
  503. 187 | <SpinnerOverlay visible={loading} fixed={true} size={'large'} />
  504. 188 | <FlashMessageRender byKey={'plugins'} />
  505. 189 | {!showInstalled ?
  506.  
  507. ERROR in resources/scripts/components/server/plugins/PluginsContainer.tsx:308:30
  508. TS7006: Parameter 'plugin' implicitly has an 'any' type.
  509. 306 | </div>
  510. 307 | {installedPlugins
  511. > 308 | .filter((plugin) =>
  512. | ^^^^^^
  513. 309 | plugin.plugin_name.toLowerCase().replace(/-/g, ' ')
  514. 310 | .includes(searchTerm.toLowerCase().replace(/-/g, ' '))
  515. 311 | )
  516.  
  517. ERROR in resources/scripts/components/server/plugins/PluginsContainer.tsx:312:27
  518. TS7006: Parameter 'plugin' implicitly has an 'any' type.
  519. 310 | .includes(searchTerm.toLowerCase().replace(/-/g, ' '))
  520. 311 | )
  521. > 312 | .map((plugin) => (
  522. | ^^^^^^
  523. 313 | <PluginInstalledRow
  524. 314 | {...plugin}
  525. 315 | />
  526.  
  527. ERROR in resources/scripts/components/server/properties/PropertiesContainer.tsx:83:53
  528. TS2322: Type '{ children: (false | Element)[]; title: string; icon: (props: SVGProps<SVGSVGElement>) => Element; }' is not assignable to type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
  529. Property 'icon' does not exist on type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
  530. 81 |
  531. 82 | return (
  532. > 83 | <ServerContentBlock title={t('properties')} icon={DocumentTextIcon}>
  533. | ^^^^
  534. 84 | <FlashMessageRender byKey={'properties'} />
  535. 85 | {(!properties || loading) ? (
  536. 86 | !loading && (
  537.  
  538. ERROR in resources/scripts/components/server/subdomains/CreateSubdomainButton.tsx:102:80
  539. TS2339: Property 'subdomains' does not exist on type 'Actions<ServerStore>'.
  540. 100 | export default () => {
  541. 101 | const { t } = useTranslation('arix/server/addons/subdomains');
  542. > 102 | const appendSubdomain = ServerContext.useStoreActions((actions) => actions.subdomains.appendSubdomain);
  543. | ^^^^^^^^^^
  544. 103 | const id = ServerContext.useStoreState((state) => state.server.data!.id);
  545. 104 | const { clearFlashes, clearAndAddHttpError } = useFlash();
  546. 105 | const [visible, setVisible] = useState(false);
  547.  
  548. ERROR in resources/scripts/components/server/subdomains/DeleteSubdomainButton.tsx:17:80
  549. TS2339: Property 'subdomains' does not exist on type 'Actions<ServerStore>'.
  550. 15 | const { t } = useTranslation('arix/server/addons/subdomains');
  551. 16 | const [isOpen, setIsOpen] = useState(false);
  552. > 17 | const removeSubdomain = ServerContext.useStoreActions((actions) => actions.subdomains.removeSubdomain);
  553. | ^^^^^^^^^^
  554. 18 | const serverId = ServerContext.useStoreState((state) => state.server.data!.id);
  555. 19 | const { addError, clearFlashes } = useFlash();
  556. 20 | const [loading, setLoading] = useState(false);
  557.  
  558. ERROR in resources/scripts/components/server/subdomains/SubdomainsContainer.tsx:24:84
  559. TS2339: Property 'subdomains' does not exist on type 'StateMapper<_Pick<ServerStore, _FilterKeys<ServerStore, ActionTypes, "default">>>'.
  560. 22 | const { addError, clearFlashes } = useFlash();
  561. 23 |
  562. > 24 | const subdomains = useDeepMemoize(ServerContext.useStoreState((state) => state.subdomains.data));
  563. | ^^^^^^^^^^
  564. 25 | const setSubdomains = ServerContext.useStoreActions((state) => state.subdomains.setSubdomains);
  565. 26 |
  566. 27 | const subdomainLimit = ServerContext.useStoreState((state) => state.server.data!.featureLimits.subdomains);
  567.  
  568. ERROR in resources/scripts/components/server/subdomains/SubdomainsContainer.tsx:25:74
  569. TS2339: Property 'subdomains' does not exist on type 'Actions<ServerStore>'.
  570. 23 |
  571. 24 | const subdomains = useDeepMemoize(ServerContext.useStoreState((state) => state.subdomains.data));
  572. > 25 | const setSubdomains = ServerContext.useStoreActions((state) => state.subdomains.setSubdomains);
  573. | ^^^^^^^^^^
  574. 26 |
  575. 27 | const subdomainLimit = ServerContext.useStoreState((state) => state.server.data!.featureLimits.subdomains);
  576. 28 | const subdomainCount = Object.keys(subdomains).length;
  577.  
  578. ERROR in resources/scripts/components/server/subdomains/SubdomainsContainer.tsx:27:100
  579. TS2339: Property 'subdomains' does not exist on type '{ databases: number; splits: number; allocations: number; backups: number; }'.
  580. 25 | const setSubdomains = ServerContext.useStoreActions((state) => state.subdomains.setSubdomains);
  581. 26 |
  582. > 27 | const subdomainLimit = ServerContext.useStoreState((state) => state.server.data!.featureLimits.subdomains);
  583. | ^^^^^^^^^^
  584. 28 | const subdomainCount = Object.keys(subdomains).length;
  585. 29 |
  586. 30 |
  587.  
  588. ERROR in resources/scripts/components/server/subdomains/SubdomainsContainer.tsx:48:53
  589. TS2322: Type '{ children: Element[]; title: string; icon: (props: SVGProps<SVGSVGElement>) => Element; }' is not assignable to type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
  590. Property 'icon' does not exist on type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
  591. 46 |
  592. 47 | return (
  593. > 48 | <ServerContentBlock title={t('subdomains')} icon={GlobeAltIcon}>
  594. | ^^^^
  595. 49 | <FlashMessageRender byKey={'subdomains'} />
  596. 50 | {!subdomains.length && loading ?
  597. 51 | <Spinner size={'large'} centered />
  598.  
  599. ERROR in resources/scripts/components/SideBar.tsx:5:24
  600. TS2614: Module '"@/components/elements/DropdownMenu"' has no exported member 'DropdownLinkRow'. Did you mean to use 'import DropdownLinkRow from "@/components/elements/DropdownMenu"' instead?
  601. 3 | import { useStoreState } from 'easy-peasy';
  602. 4 | import { ApplicationStore } from '@/state';
  603. > 5 | import DropdownMenu, { DropdownLinkRow, DropdownButtonRow } from '@/components/elements/DropdownMenu';
  604. | ^^^^^^^^^^^^^^^
  605. 6 | import SpinnerOverlay from '@/components/elements/SpinnerOverlay';
  606. 7 | import UserAvatar from '@/components/UserAvatar';
  607. 8 | import { ServerIcon, UserCircleIcon, DotsVerticalIcon, CogIcon, EyeIcon, MoonIcon, LogoutIcon } from '@heroicons/react/outline';
  608.  
  609. ERROR in resources/scripts/components/SideBar.tsx:25:84
  610. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  611. 23 | const [isLoggingOut, setIsLoggingOut] = useState(false);
  612. 24 | const name = useStoreState((state: ApplicationStore) => state.settings.data!.name);
  613. > 25 | const layout = useStoreState((state: ApplicationStore) => state.settings.data!.arix.layout);
  614. | ^^^^
  615. 26 | const modeToggler = useStoreState((state: ApplicationStore) => state.settings.data!.arix.modeToggler);
  616. 27 | const logo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logo);
  617. 28 | const logoHeight = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logoHeight);
  618.  
  619. ERROR in resources/scripts/components/SideBar.tsx:26:89
  620. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  621. 24 | const name = useStoreState((state: ApplicationStore) => state.settings.data!.name);
  622. 25 | const layout = useStoreState((state: ApplicationStore) => state.settings.data!.arix.layout);
  623. > 26 | const modeToggler = useStoreState((state: ApplicationStore) => state.settings.data!.arix.modeToggler);
  624. | ^^^^
  625. 27 | const logo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logo);
  626. 28 | const logoHeight = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logoHeight);
  627. 29 | const fullLogo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.fullLogo);
  628.  
  629. ERROR in resources/scripts/components/SideBar.tsx:27:82
  630. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  631. 25 | const layout = useStoreState((state: ApplicationStore) => state.settings.data!.arix.layout);
  632. 26 | const modeToggler = useStoreState((state: ApplicationStore) => state.settings.data!.arix.modeToggler);
  633. > 27 | const logo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logo);
  634. | ^^^^
  635. 28 | const logoHeight = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logoHeight);
  636. 29 | const fullLogo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.fullLogo);
  637. 30 | const rootAdmin = useStoreState((state: ApplicationStore) => state.user.data!.rootAdmin);
  638.  
  639. ERROR in resources/scripts/components/SideBar.tsx:28:88
  640. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  641. 26 | const modeToggler = useStoreState((state: ApplicationStore) => state.settings.data!.arix.modeToggler);
  642. 27 | const logo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logo);
  643. > 28 | const logoHeight = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logoHeight);
  644. | ^^^^
  645. 29 | const fullLogo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.fullLogo);
  646. 30 | const rootAdmin = useStoreState((state: ApplicationStore) => state.user.data!.rootAdmin);
  647. 31 |
  648.  
  649. ERROR in resources/scripts/components/SideBar.tsx:29:86
  650. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  651. 27 | const logo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logo);
  652. 28 | const logoHeight = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logoHeight);
  653. > 29 | const fullLogo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.fullLogo);
  654. | ^^^^
  655. 30 | const rootAdmin = useStoreState((state: ApplicationStore) => state.user.data!.rootAdmin);
  656. 31 |
  657. 32 | useEffect(() => {
  658.  
  659. ERROR in resources/scripts/components/SideBar.tsx:131:21
  660. TS2769: No overload matches this call.
  661. Overload 1 of 2, '(props: Props | Readonly<Props>): DropdownMenu', gave the following error.
  662. Type '{ children: (false | Element)[]; ref: RefObject<DropdownMenu>; sideBar: true; renderToggle: (onClick: (e: MouseEvent<any, MouseEvent>) => void) => Element; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<DropdownMenu> & Readonly<Props> & Readonly<{ children?: ReactNode; }>'.
  663. Property 'sideBar' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<DropdownMenu> & Readonly<Props> & Readonly<{ children?: ReactNode; }>'.
  664. Overload 2 of 2, '(props: Props, context: any): DropdownMenu', gave the following error.
  665. Type '{ children: (false | Element)[]; ref: RefObject<DropdownMenu>; sideBar: true; renderToggle: (onClick: (e: MouseEvent<any, MouseEvent>) => void) => Element; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<DropdownMenu> & Readonly<Props> & Readonly<{ children?: ReactNode; }>'.
  666. Property 'sideBar' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<DropdownMenu> & Readonly<Props> & Readonly<{ children?: ReactNode; }>'.
  667. 129 | <DropdownMenu
  668. 130 | ref={onClickRef}
  669. > 131 | sideBar
  670. | ^^^^^^^
  671. 132 | renderToggle={(onClick) => (
  672. 133 | <div onClick={onClick} className="cursor-pointer text-gray-50 p-2">
  673. 134 | <DotsVerticalIcon className="w-5" />
  674.  
  675. ERROR in resources/scripts/components/SideBarIcon.tsx:60:82
  676. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  677. 58 | const [isDarkMode, setIsDarkMode] = useState<boolean>(false);
  678. 59 | const [isLoggingOut, setIsLoggingOut] = useState(false);
  679. > 60 | const logo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logo);
  680. | ^^^^
  681. 61 | const logoHeight = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logoHeight);
  682. 62 | const rootAdmin = useStoreState((state: ApplicationStore) => state.user.data!.rootAdmin);
  683. 63 |
  684.  
  685. ERROR in resources/scripts/components/SideBarIcon.tsx:61:88
  686. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  687. 59 | const [isLoggingOut, setIsLoggingOut] = useState(false);
  688. 60 | const logo = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logo);
  689. > 61 | const logoHeight = useStoreState((state: ApplicationStore) => state.settings.data!.arix.logoHeight);
  690. | ^^^^
  691. 62 | const rootAdmin = useStoreState((state: ApplicationStore) => state.user.data!.rootAdmin);
  692. 63 |
  693. 64 | useEffect(() => {
  694.  
  695. ERROR in resources/scripts/components/UserAvatar.tsx:3:17
  696. TS2307: Cannot find module 'md5' or its corresponding type declarations.
  697. 1 | import * as React from 'react';
  698. 2 | import { useStoreState } from 'easy-peasy';
  699. > 3 | import Md5 from 'md5';
  700. | ^^^^^
  701. 4 | import { ApplicationStore } from '@/state';
  702. 5 | import Avatar from '@/components/Avatar';
  703. 6 |
  704.  
  705. ERROR in resources/scripts/components/UserAvatar.tsx:16:89
  706. TS2339: Property 'arix' does not exist on type 'SiteSettings'.
  707. 14 |
  708. 15 | export default ({ email, user, uuid, width, rounded }: Props) => {
  709. > 16 | const profileType = useStoreState((state: ApplicationStore) => state.settings.data!.arix.profileType);
  710. | ^^^^
  711. 17 | const username = useStoreState((state) => state.user.data?.username);
  712. 18 | const useremail = useStoreState(state => state.user.data?.email);
  713. 19 |
  714.  
  715. ERROR in resources/scripts/routers/RouterElements.tsx:22:76
  716. TS2339: Property 'nestId' does not exist on type 'Server'.
  717. 20 | const match = useRouteMatch<{ id: string }>();
  718. 21 |
  719. > 22 | const nestId = ServerContext.useStoreState((state) => state.server.data?.nestId);
  720. | ^^^^^^
  721. 23 | const eggId = ServerContext.useStoreState((state) => state.server.data?.eggId);
  722. 24 |
  723. 25 | const to = (value: string, url = false) => {
  724.  
  725. ERROR in resources/scripts/routers/RouterElements.tsx:23:75
  726. TS2339: Property 'eggId' does not exist on type 'Server'.
  727. 21 |
  728. 22 | const nestId = ServerContext.useStoreState((state) => state.server.data?.nestId);
  729. > 23 | const eggId = ServerContext.useStoreState((state) => state.server.data?.eggId);
  730. | ^^^^^
  731. 24 |
  732. 25 | const to = (value: string, url = false) => {
  733. 26 | return `${(url ? match.url : match.path).replace(/\/*$/, '')}/${value.replace(/^\/+/, '')}`;
  734.  
  735. ERROR in resources/scripts/routers/RouterElements.tsx:60:22
  736. TS2339: Property 'general' does not exist on type 'ServerRouteDefinition[]'.
  737. 58 | return (
  738. 59 | <>
  739. > 60 | {routes.server.general
  740. | ^^^^^^^
  741. 61 | .filter((route) => !!route.name)
  742. 62 | .map((route) =>
  743. 63 | renderNavItem(route)
  744.  
  745. ERROR in resources/scripts/routers/RouterElements.tsx:61:18
  746. TS7006: Parameter 'route' implicitly has an 'any' type.
  747. 59 | <>
  748. 60 | {routes.server.general
  749. > 61 | .filter((route) => !!route.name)
  750. | ^^^^^
  751. 62 | .map((route) =>
  752. 63 | renderNavItem(route)
  753. 64 | )}
  754.  
  755. ERROR in resources/scripts/routers/RouterElements.tsx:62:15
  756. TS7006: Parameter 'route' implicitly has an 'any' type.
  757. 60 | {routes.server.general
  758. 61 | .filter((route) => !!route.name)
  759. > 62 | .map((route) =>
  760. | ^^^^^
  761. 63 | renderNavItem(route)
  762. 64 | )}
  763. 65 | <div className="dropdown">
  764.  
  765. ERROR in resources/scripts/routers/RouterElements.tsx:68:26
  766. TS2339: Property 'management' does not exist on type 'ServerRouteDefinition[]'.
  767. 66 | <span>{t('management')} <ChevronDownIcon className="w-3"/></span>
  768. 67 | <div className="dropdown-body">
  769. > 68 | {routes.server.management
  770. | ^^^^^^^^^^
  771. 69 | .filter((route) => !!route.name)
  772. 70 | .map((route) =>
  773. 71 | renderNavItem(route)
  774.  
  775. ERROR in resources/scripts/routers/RouterElements.tsx:69:22
  776. TS7006: Parameter 'route' implicitly has an 'any' type.
  777. 67 | <div className="dropdown-body">
  778. 68 | {routes.server.management
  779. > 69 | .filter((route) => !!route.name)
  780. | ^^^^^
  781. 70 | .map((route) =>
  782. 71 | renderNavItem(route)
  783. 72 | )}
  784.  
  785. ERROR in resources/scripts/routers/RouterElements.tsx:70:19
  786. TS7006: Parameter 'route' implicitly has an 'any' type.
  787. 68 | {routes.server.management
  788. 69 | .filter((route) => !!route.name)
  789. > 70 | .map((route) =>
  790. | ^^^^^
  791. 71 | renderNavItem(route)
  792. 72 | )}
  793. 73 | </div>
  794.  
  795. ERROR in resources/scripts/routers/RouterElements.tsx:78:26
  796. TS2339: Property 'configuration' does not exist on type 'ServerRouteDefinition[]'.
  797. 76 | <span>{t('configuration')} <ChevronDownIcon className="w-3"/></span>
  798. 77 | <div className="dropdown-body">
  799. > 78 | {routes.server.configuration
  800. | ^^^^^^^^^^^^^
  801. 79 | .filter((route) => !!route.name)
  802. 80 | .map((route) =>
  803. 81 | renderNavItem(route)
  804.  
  805. ERROR in resources/scripts/routers/RouterElements.tsx:79:22
  806. TS7006: Parameter 'route' implicitly has an 'any' type.
  807. 77 | <div className="dropdown-body">
  808. 78 | {routes.server.configuration
  809. > 79 | .filter((route) => !!route.name)
  810. | ^^^^^
  811. 80 | .map((route) =>
  812. 81 | renderNavItem(route)
  813. 82 | )}
  814.  
  815. ERROR in resources/scripts/routers/RouterElements.tsx:80:19
  816. TS7006: Parameter 'route' implicitly has an 'any' type.
  817. 78 | {routes.server.configuration
  818. 79 | .filter((route) => !!route.name)
  819. > 80 | .map((route) =>
  820. | ^^^^^
  821. 81 | renderNavItem(route)
  822. 82 | )}
  823. 83 | </div>
  824.  
  825. ERROR in resources/scripts/routers/RouterElements.tsx:96:24
  826. TS2339: Property 'general' does not exist on type 'ServerRouteDefinition[]'.
  827. 94 | <div>
  828. 95 | <span>{t('general')}</span>
  829. > 96 | {routes.server.general
  830. | ^^^^^^^
  831. 97 | .filter((route) => !!route.name)
  832. 98 | .map((route) =>
  833. 99 | renderNavItem(route)
  834.  
  835. ERROR in resources/scripts/routers/RouterElements.tsx:97:20
  836. TS7006: Parameter 'route' implicitly has an 'any' type.
  837. 95 | <span>{t('general')}</span>
  838. 96 | {routes.server.general
  839. > 97 | .filter((route) => !!route.name)
  840. | ^^^^^
  841. 98 | .map((route) =>
  842. 99 | renderNavItem(route)
  843. 100 | )}
  844.  
  845. ERROR in resources/scripts/routers/RouterElements.tsx:98:17
  846. TS7006: Parameter 'route' implicitly has an 'any' type.
  847. 96 | {routes.server.general
  848. 97 | .filter((route) => !!route.name)
  849. > 98 | .map((route) =>
  850. | ^^^^^
  851. 99 | renderNavItem(route)
  852. 100 | )}
  853. 101 | </div>
  854.  
  855. ERROR in resources/scripts/routers/RouterElements.tsx:104:24
  856. TS2339: Property 'management' does not exist on type 'ServerRouteDefinition[]'.
  857. 102 | <div>
  858. 103 | <span>{t('management')}</span>
  859. > 104 | {routes.server.management
  860. | ^^^^^^^^^^
  861. 105 | .filter((route) => !!route.name)
  862. 106 | .map((route) =>
  863. 107 | renderNavItem(route)
  864.  
  865. ERROR in resources/scripts/routers/RouterElements.tsx:105:20
  866. TS7006: Parameter 'route' implicitly has an 'any' type.
  867. 103 | <span>{t('management')}</span>
  868. 104 | {routes.server.management
  869. > 105 | .filter((route) => !!route.name)
  870. | ^^^^^
  871. 106 | .map((route) =>
  872. 107 | renderNavItem(route)
  873. 108 | )}
  874.  
  875. ERROR in resources/scripts/routers/RouterElements.tsx:106:17
  876. TS7006: Parameter 'route' implicitly has an 'any' type.
  877. 104 | {routes.server.management
  878. 105 | .filter((route) => !!route.name)
  879. > 106 | .map((route) =>
  880. | ^^^^^
  881. 107 | renderNavItem(route)
  882. 108 | )}
  883. 109 | </div>
  884.  
  885. ERROR in resources/scripts/routers/RouterElements.tsx:112:24
  886. TS2339: Property 'configuration' does not exist on type 'ServerRouteDefinition[]'.
  887. 110 | <div>
  888. 111 | <span>{t('configuration')}</span>
  889. > 112 | {routes.server.configuration
  890. | ^^^^^^^^^^^^^
  891. 113 | .filter((route) => !!route.name)
  892. 114 | .map((route) =>
  893. 115 | renderNavItem(route)
  894.  
  895. ERROR in resources/scripts/routers/RouterElements.tsx:113:20
  896. TS7006: Parameter 'route' implicitly has an 'any' type.
  897. 111 | <span>{t('configuration')}</span>
  898. 112 | {routes.server.configuration
  899. > 113 | .filter((route) => !!route.name)
  900. | ^^^^^
  901. 114 | .map((route) =>
  902. 115 | renderNavItem(route)
  903. 116 | )}
  904.  
  905. ERROR in resources/scripts/routers/RouterElements.tsx:114:17
  906. TS7006: Parameter 'route' implicitly has an 'any' type.
  907. 112 | {routes.server.configuration
  908. 113 | .filter((route) => !!route.name)
  909. > 114 | .map((route) =>
  910. | ^^^^^
  911. 115 | renderNavItem(route)
  912. 116 | )}
  913. 117 | </div>
  914.  
  915. ERROR in resources/scripts/routers/RouterElements.tsx:126:82
  916. TS2339: Property 'nestId' does not exist on type 'Server'.
  917. 124 | const location = useLocation();
  918. 125 |
  919. > 126 | const serverNestId = ServerContext.useStoreState((state) => state.server.data?.nestId);
  920. | ^^^^^^
  921. 127 | const serverEggId = ServerContext.useStoreState((state) => state.server.data?.eggId);
  922. 128 |
  923. 129 | const to = (value: string, url = false) => {
  924.  
  925. ERROR in resources/scripts/routers/RouterElements.tsx:127:81
  926. TS2339: Property 'eggId' does not exist on type 'Server'.
  927. 125 |
  928. 126 | const serverNestId = ServerContext.useStoreState((state) => state.server.data?.nestId);
  929. > 127 | const serverEggId = ServerContext.useStoreState((state) => state.server.data?.eggId);
  930. | ^^^^^
  931. 128 |
  932. 129 | const to = (value: string, url = false) => {
  933. 130 | return `${(url ? match.url : match.path).replace(/\/*$/, '')}/${value.replace(/^\/+/, '')}`;
  934.  
  935. ERROR in resources/scripts/routers/RouterElements.tsx:137:26
  936. TS2339: Property 'general' does not exist on type 'ServerRouteDefinition[]'.
  937. 135 | <TransitionRouter>
  938. 136 | <Switch location={location}>
  939. > 137 | {routes.server.general.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  940. | ^^^^^^^
  941. 138 | return (
  942. 139 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  943. 140 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  944.  
  945. ERROR in resources/scripts/routers/RouterElements.tsx:137:41
  946. TS7031: Binding element 'path' implicitly has an 'any' type.
  947. 135 | <TransitionRouter>
  948. 136 | <Switch location={location}>
  949. > 137 | {routes.server.general.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  950. | ^^^^
  951. 138 | return (
  952. 139 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  953. 140 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  954.  
  955. ERROR in resources/scripts/routers/RouterElements.tsx:137:47
  956. TS7031: Binding element 'permission' implicitly has an 'any' type.
  957. 135 | <TransitionRouter>
  958. 136 | <Switch location={location}>
  959. > 137 | {routes.server.general.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  960. | ^^^^^^^^^^
  961. 138 | return (
  962. 139 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  963. 140 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  964.  
  965. ERROR in resources/scripts/routers/RouterElements.tsx:137:70
  966. TS7031: Binding element 'Component' implicitly has an 'any' type.
  967. 135 | <TransitionRouter>
  968. 136 | <Switch location={location}>
  969. > 137 | {routes.server.general.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  970. | ^^^^^^^^^
  971. 138 | return (
  972. 139 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  973. 140 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  974.  
  975. ERROR in resources/scripts/routers/RouterElements.tsx:137:81
  976. TS7031: Binding element 'nestIds' implicitly has an 'any' type.
  977. 135 | <TransitionRouter>
  978. 136 | <Switch location={location}>
  979. > 137 | {routes.server.general.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  980. | ^^^^^^^
  981. 138 | return (
  982. 139 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  983. 140 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  984.  
  985. ERROR in resources/scripts/routers/RouterElements.tsx:137:90
  986. TS7031: Binding element 'eggIds' implicitly has an 'any' type.
  987. 135 | <TransitionRouter>
  988. 136 | <Switch location={location}>
  989. > 137 | {routes.server.general.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  990. | ^^^^^^
  991. 138 | return (
  992. 139 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  993. 140 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  994.  
  995. ERROR in resources/scripts/routers/RouterElements.tsx:137:98
  996. TS7031: Binding element 'nestId' implicitly has an 'any' type.
  997. 135 | <TransitionRouter>
  998. 136 | <Switch location={location}>
  999. > 137 | {routes.server.general.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1000. | ^^^^^^
  1001. 138 | return (
  1002. 139 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1003. 140 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1004.  
  1005. ERROR in resources/scripts/routers/RouterElements.tsx:137:106
  1006. TS7031: Binding element 'eggId' implicitly has an 'any' type.
  1007. 135 | <TransitionRouter>
  1008. 136 | <Switch location={location}>
  1009. > 137 | {routes.server.general.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1010. | ^^^^^
  1011. 138 | return (
  1012. 139 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1013. 140 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1014.  
  1015. ERROR in resources/scripts/routers/RouterElements.tsx:152:26
  1016. TS2339: Property 'management' does not exist on type 'ServerRouteDefinition[]'.
  1017. 150 | );
  1018. 151 | })}
  1019. > 152 | {routes.server.management.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1020. | ^^^^^^^^^^
  1021. 153 | return (
  1022. 154 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1023. 155 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1024.  
  1025. ERROR in resources/scripts/routers/RouterElements.tsx:152:44
  1026. TS7031: Binding element 'path' implicitly has an 'any' type.
  1027. 150 | );
  1028. 151 | })}
  1029. > 152 | {routes.server.management.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1030. | ^^^^
  1031. 153 | return (
  1032. 154 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1033. 155 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1034.  
  1035. ERROR in resources/scripts/routers/RouterElements.tsx:152:50
  1036. TS7031: Binding element 'permission' implicitly has an 'any' type.
  1037. 150 | );
  1038. 151 | })}
  1039. > 152 | {routes.server.management.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1040. | ^^^^^^^^^^
  1041. 153 | return (
  1042. 154 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1043. 155 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1044.  
  1045. ERROR in resources/scripts/routers/RouterElements.tsx:152:73
  1046. TS7031: Binding element 'Component' implicitly has an 'any' type.
  1047. 150 | );
  1048. 151 | })}
  1049. > 152 | {routes.server.management.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1050. | ^^^^^^^^^
  1051. 153 | return (
  1052. 154 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1053. 155 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1054.  
  1055. ERROR in resources/scripts/routers/RouterElements.tsx:152:84
  1056. TS7031: Binding element 'nestIds' implicitly has an 'any' type.
  1057. 150 | );
  1058. 151 | })}
  1059. > 152 | {routes.server.management.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1060. | ^^^^^^^
  1061. 153 | return (
  1062. 154 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1063. 155 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1064.  
  1065. ERROR in resources/scripts/routers/RouterElements.tsx:152:93
  1066. TS7031: Binding element 'eggIds' implicitly has an 'any' type.
  1067. 150 | );
  1068. 151 | })}
  1069. > 152 | {routes.server.management.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1070. | ^^^^^^
  1071. 153 | return (
  1072. 154 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1073. 155 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1074.  
  1075. ERROR in resources/scripts/routers/RouterElements.tsx:152:101
  1076. TS7031: Binding element 'nestId' implicitly has an 'any' type.
  1077. 150 | );
  1078. 151 | })}
  1079. > 152 | {routes.server.management.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1080. | ^^^^^^
  1081. 153 | return (
  1082. 154 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1083. 155 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1084.  
  1085. ERROR in resources/scripts/routers/RouterElements.tsx:152:109
  1086. TS7031: Binding element 'eggId' implicitly has an 'any' type.
  1087. 150 | );
  1088. 151 | })}
  1089. > 152 | {routes.server.management.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1090. | ^^^^^
  1091. 153 | return (
  1092. 154 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1093. 155 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1094.  
  1095. ERROR in resources/scripts/routers/RouterElements.tsx:167:26
  1096. TS2339: Property 'configuration' does not exist on type 'ServerRouteDefinition[]'.
  1097. 165 | );
  1098. 166 | })}
  1099. > 167 | {routes.server.configuration.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1100. | ^^^^^^^^^^^^^
  1101. 168 | return (
  1102. 169 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1103. 170 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1104.  
  1105. ERROR in resources/scripts/routers/RouterElements.tsx:167:47
  1106. TS7031: Binding element 'path' implicitly has an 'any' type.
  1107. 165 | );
  1108. 166 | })}
  1109. > 167 | {routes.server.configuration.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1110. | ^^^^
  1111. 168 | return (
  1112. 169 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1113. 170 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1114.  
  1115. ERROR in resources/scripts/routers/RouterElements.tsx:167:53
  1116. TS7031: Binding element 'permission' implicitly has an 'any' type.
  1117. 165 | );
  1118. 166 | })}
  1119. > 167 | {routes.server.configuration.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1120. | ^^^^^^^^^^
  1121. 168 | return (
  1122. 169 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1123. 170 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1124.  
  1125. ERROR in resources/scripts/routers/RouterElements.tsx:167:76
  1126. TS7031: Binding element 'Component' implicitly has an 'any' type.
  1127. 165 | );
  1128. 166 | })}
  1129. > 167 | {routes.server.configuration.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1130. | ^^^^^^^^^
  1131. 168 | return (
  1132. 169 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1133. 170 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1134.  
  1135. ERROR in resources/scripts/routers/RouterElements.tsx:167:87
  1136. TS7031: Binding element 'nestIds' implicitly has an 'any' type.
  1137. 165 | );
  1138. 166 | })}
  1139. > 167 | {routes.server.configuration.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1140. | ^^^^^^^
  1141. 168 | return (
  1142. 169 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1143. 170 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1144.  
  1145. ERROR in resources/scripts/routers/RouterElements.tsx:167:96
  1146. TS7031: Binding element 'eggIds' implicitly has an 'any' type.
  1147. 165 | );
  1148. 166 | })}
  1149. > 167 | {routes.server.configuration.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1150. | ^^^^^^
  1151. 168 | return (
  1152. 169 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1153. 170 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1154.  
  1155. ERROR in resources/scripts/routers/RouterElements.tsx:167:104
  1156. TS7031: Binding element 'nestId' implicitly has an 'any' type.
  1157. 165 | );
  1158. 166 | })}
  1159. > 167 | {routes.server.configuration.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1160. | ^^^^^^
  1161. 168 | return (
  1162. 169 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1163. 170 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1164.  
  1165. ERROR in resources/scripts/routers/RouterElements.tsx:167:112
  1166. TS7031: Binding element 'eggId' implicitly has an 'any' type.
  1167. 165 | );
  1168. 166 | })}
  1169. > 167 | {routes.server.configuration.map(({ path, permission, component: Component, nestIds, eggIds, nestId, eggId }) => {
  1170. | ^^^^^
  1171. 168 | return (
  1172. 169 | ((nestIds && nestIds.includes(serverNestId ?? 0)) ||
  1173. 170 | (eggIds && eggIds.includes(serverEggId ?? 0)) ||
  1174. error Command failed with exit code 2.
Advertisement
Add Comment
Please, Sign In to add comment