ERROR in resources/scripts/routers/ServerRouter.tsx:1:30 TS2307: Cannot find module '@/components/server/TransferListener' or its corresponding type declarations. > 1 | import TransferListener from '@/components/server/TransferListener'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2 | import React, { useEffect, useState } from 'react'; 3 | import { useRouteMatch } from 'react-router-dom'; 4 | import NavigationBar from '@/components/NavigationBar'; ERROR in resources/scripts/routers/ServerRouter.tsx:5:30 TS2307: Cannot find module '@/components/server/WebsocketHandler' or its corresponding type declarations. 3 | import { useRouteMatch } from 'react-router-dom'; 4 | import NavigationBar from '@/components/NavigationBar'; > 5 | import WebsocketHandler from '@/components/server/WebsocketHandler'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | import { ServerContext } from '@/state/server'; 7 | import { CSSTransition } from 'react-transition-group'; 8 | import Spinner from '@/components/elements/Spinner'; ERROR in resources/scripts/routers/ServerRouter.tsx:6:31 TS2307: Cannot find module '@/state/server' or its corresponding type declarations. 4 | import NavigationBar from '@/components/NavigationBar'; 5 | import WebsocketHandler from '@/components/server/WebsocketHandler'; > 6 | import { ServerContext } from '@/state/server'; | ^^^^^^^^^^^^^^^^ 7 | import { CSSTransition } from 'react-transition-group'; 8 | import Spinner from '@/components/elements/Spinner'; 9 | import { ServerError } from '@/components/elements/ScreenBlock'; ERROR in resources/scripts/routers/ServerRouter.tsx:8:21 TS2307: Cannot find module '@/components/elements/Spinner' or its corresponding type declarations. 6 | import { ServerContext } from '@/state/server'; 7 | import { CSSTransition } from 'react-transition-group'; > 8 | import Spinner from '@/components/elements/Spinner'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 | import { ServerError } from '@/components/elements/ScreenBlock'; 10 | import { httpErrorToHuman } from '@/api/http'; 11 | import { useStoreState } from 'easy-peasy'; ERROR in resources/scripts/routers/ServerRouter.tsx:9:29 TS2307: Cannot find module '@/components/elements/ScreenBlock' or its corresponding type declarations. 7 | import { CSSTransition } from 'react-transition-group'; 8 | import Spinner from '@/components/elements/Spinner'; > 9 | import { ServerError } from '@/components/elements/ScreenBlock'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 | import { httpErrorToHuman } from '@/api/http'; 11 | import { useStoreState } from 'easy-peasy'; 12 | import SubNavigation from '@/components/elements/SubNavigation'; ERROR in resources/scripts/routers/ServerRouter.tsx:10:34 TS2307: Cannot find module '@/api/http' or its corresponding type declarations. 8 | import Spinner from '@/components/elements/Spinner'; 9 | import { ServerError } from '@/components/elements/ScreenBlock'; > 10 | import { httpErrorToHuman } from '@/api/http'; | ^^^^^^^^^^^^ 11 | import { useStoreState } from 'easy-peasy'; 12 | import SubNavigation from '@/components/elements/SubNavigation'; 13 | import InstallListener from '@/components/server/InstallListener'; ERROR in resources/scripts/routers/ServerRouter.tsx:12:27 TS2307: Cannot find module '@/components/elements/SubNavigation' or its corresponding type declarations. 10 | import { httpErrorToHuman } from '@/api/http'; 11 | import { useStoreState } from 'easy-peasy'; > 12 | import SubNavigation from '@/components/elements/SubNavigation'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 13 | import InstallListener from '@/components/server/InstallListener'; 14 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; 15 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons'; ERROR in resources/scripts/routers/ServerRouter.tsx:13:29 TS2307: Cannot find module '@/components/server/InstallListener' or its corresponding type declarations. 11 | import { useStoreState } from 'easy-peasy'; 12 | import SubNavigation from '@/components/elements/SubNavigation'; > 13 | import InstallListener from '@/components/server/InstallListener'; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; 15 | import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons'; 16 | ERROR in resources/scripts/routers/ServerRouter.tsx:25:54 TS2339: Property 'user' does not exist on type 'StateMapper<_Pick<{}, never>>'. 23 | const match = useRouteMatch<{ id: string }>(); 24 | > 25 | const rootAdmin = useStoreState((state) => state.user.data!.rootAdmin); | ^^^^ 26 | const [error, setError] = useState(''); 27 | 28 | const id = ServerContext.useStoreState((state) => state.server.data?.id); ERROR in resources/scripts/routers/ServerRouter.tsx:28:45 TS7006: Parameter 'state' implicitly has an 'any' type. 26 | const [error, setError] = useState(''); 27 | > 28 | const id = ServerContext.useStoreState((state) => state.server.data?.id); | ^^^^^ 29 | const uuid = ServerContext.useStoreState((state) => state.server.data?.uuid); 30 | const serverId = ServerContext.useStoreState((state) => state.server.data?.internalId); 31 | const getServer = ServerContext.useStoreActions((actions) => actions.server.getServer); ERROR in resources/scripts/routers/ServerRouter.tsx:29:47 TS7006: Parameter 'state' implicitly has an 'any' type. 27 | 28 | const id = ServerContext.useStoreState((state) => state.server.data?.id); > 29 | const uuid = ServerContext.useStoreState((state) => state.server.data?.uuid); | ^^^^^ 30 | const serverId = ServerContext.useStoreState((state) => state.server.data?.internalId); 31 | const getServer = ServerContext.useStoreActions((actions) => actions.server.getServer); 32 | const clearServerState = ServerContext.useStoreActions((actions) => actions.clearServerState); ERROR in resources/scripts/routers/ServerRouter.tsx:30:51 TS7006: Parameter 'state' implicitly has an 'any' type. 28 | const id = ServerContext.useStoreState((state) => state.server.data?.id); 29 | const uuid = ServerContext.useStoreState((state) => state.server.data?.uuid); > 30 | const serverId = ServerContext.useStoreState((state) => state.server.data?.internalId); | ^^^^^ 31 | const getServer = ServerContext.useStoreActions((actions) => actions.server.getServer); 32 | const clearServerState = ServerContext.useStoreActions((actions) => actions.clearServerState); 33 | ERROR in resources/scripts/routers/ServerRouter.tsx:31:54 TS7006: Parameter 'actions' implicitly has an 'any' type. 29 | const uuid = ServerContext.useStoreState((state) => state.server.data?.uuid); 30 | const serverId = ServerContext.useStoreState((state) => state.server.data?.internalId); > 31 | const getServer = ServerContext.useStoreActions((actions) => actions.server.getServer); | ^^^^^^^ 32 | const clearServerState = ServerContext.useStoreActions((actions) => actions.clearServerState); 33 | 34 | useEffect( ERROR in resources/scripts/routers/ServerRouter.tsx:32:61 TS7006: Parameter 'actions' implicitly has an 'any' type. 30 | const serverId = ServerContext.useStoreState((state) => state.server.data?.internalId); 31 | const getServer = ServerContext.useStoreActions((actions) => actions.server.getServer); > 32 | const clearServerState = ServerContext.useStoreActions((actions) => actions.clearServerState); | ^^^^^^^ 33 | 34 | useEffect( 35 | () => () => { ERROR in resources/scripts/routers/ServerRouter.tsx:44:43 TS7006: Parameter 'error' implicitly has an 'any' type. 42 | setError(''); 43 | > 44 | getServer(match.params.id).catch((error) => { | ^^^^^ 45 | console.error(error); 46 | setError(httpErrorToHuman(error)); 47 | }); error Command failed with exit code 2.