Open chedieck opened 1 year ago
Even after ignoring this lint checking on next config, I get tons and tons of TS errors later:
components/Chart.tsx(35,20): error TS7006: Parameter 'name' implicitly has an 'any' type.
components/Chart.tsx(56,28): error TS7006: Parameter 'context' implicitly has an 'any' type.
components/Chart.tsx(95,16): error TS2322: Type '{ responsive: boolean; lineTension: number; maintainAspectRatio: boolean; plugins: { legend: { display: boolean; }; tooltip: { displayColors: boolean; callbacks: { label: (context: any) => string; }; mode: string; intersect: boolean; }; }; scales: { ...; }; }' is not assignable to type '_DeepPartialObject<CoreChartOptions<"line"> & ElementChartOptions<"line"> & PluginChartOptions<"line"> & DatasetChartOptions<"line"> & ScaleChartOptions<...> & LineControllerChartOptions>'.
The types of 'plugins.tooltip.mode' are incompatible between these types.
Type 'string' is not assignable to type '"index" | "y" | "nearest" | "dataset" | "point" | "x" | undefined'.
components/Chart.tsx(95,34): error TS2741: Property 'datasets' is missing in type '{}' but required in type 'ChartData<"line", (number | ScatterDataPoint | null)[], unknown>'.
components/Layout/index.tsx(10,3): error TS2322: Type 'Element' is not assignable to type 'FunctionComponent<LayoutProps>'.
Type 'Element' provides no match for the signature '(props: PropsWithChildren<LayoutProps>, context?: any): ReactElement<any, any> | null'.
components/Layout/index.tsx(11,14): error TS2322: Type '{ chart: any; setChart: any; loggedin: any; }' is not assignable to type 'IntrinsicAttributes & { children?: ReactNode; }'.
Property 'chart' does not exist on type 'IntrinsicAttributes & { children?: ReactNode; }'.
components/Layout/index.tsx(11,27): error TS2339: Property 'chart' does not exist on type 'LayoutProps'.
components/Layout/index.tsx(11,50): error TS2339: Property 'setChart' does not exist on type 'LayoutProps'.
components/Layout/index.tsx(11,76): error TS2339: Property 'loggedin' does not exist on type 'LayoutProps'.
components/MenuItem/index.tsx(25,3): error TS2322: Type 'Element' is not assignable to type 'FunctionComponent<MenuItemProps>'.
Type 'Element' provides no match for the signature '(props: PropsWithChildren<MenuItemProps>, context?: any): ReactElement<any, any> | null'.
components/Network/NetworkList.tsx(8,3): error TS2322: Type 'Element' is not assignable to type 'FunctionComponent<IProps>'.
Type 'Element' provides no match for the signature '(props: PropsWithChildren<IProps>, context?: any): ReactElement<any, any> | null'.
components/Page/index.tsx(9,34): error TS2339: Property 'setChart' does not exist on type 'PageProps'.
components/Page/index.tsx(9,44): error TS2339: Property 'loggedin' does not exist on type 'PageProps'.
components/Page/index.tsx(10,5): error TS2322: Type 'Element' is not assignable to type 'FunctionComponent<PageProps>'.
Type 'Element' provides no match for the signature '(props: PropsWithChildren<PageProps>, context?: any): ReactElement<any, any> | null'.
components/Page/index.tsx(10,6): error TS2786: 'Layout' cannot be used as a JSX component.
Its return type 'FunctionComponent<LayoutProps>' is not a valid JSX element.
Type 'FunctionComponent<LayoutProps>' is missing the following properties from type 'Element': type, props, key
components/Page/index.tsx(10,13): error TS2322: Type '{ children: ReactNode; chart: boolean; setChart: any; loggedin: any; }' is not assignable to type 'IntrinsicAttributes & LayoutProps'.
Property 'chart' does not exist on type 'IntrinsicAttributes & LayoutProps'.
components/Paybutton/PaybuttonDetail.tsx(16,3): error TS2322: Type 'Element' is not assignable to type 'FunctionComponent<{}>'.
Type 'Element' provides no match for the signature '(props: { children?: ReactNode; }, context?: any): ReactElement<any, any> | null'.
components/Paybutton/PaybuttonForm.tsx(45,44): error TS2345: Argument of type 'Function' is not assignable to parameter of type 'SubmitHandler<PaybuttonPOSTParameters>'.
Type 'Function' provides no match for the signature '(data: PaybuttonPOSTParameters, event?: BaseSyntheticEvent<object, any, any> | undefined): unknown'.
components/Paybutton/PaybuttonList.tsx(18,3): error TS2322: Type 'Element' is not assignable to type 'FunctionComponent<IProps>'.
Type 'Element' provides no match for the signature '(props: PropsWithChildren<IProps>, context?: any): ReactElement<any, any> | null'.
components/Sidebar/index.tsx(63,30): error TS2339: Property 'chart' does not exist on type '{ children?: ReactNode; }'.
components/Sidebar/index.tsx(63,37): error TS2339: Property 'setChart' does not exist on type '{ children?: ReactNode; }'.
components/Sidebar/index.tsx(63,47): error TS2339: Property 'loggedin' does not exist on type '{ children?: ReactNode; }'.
components/Sidebar/index.tsx(92,5): error TS2531: Object is possibly 'null'.
components/Sidebar/index.tsx(92,45): error TS2339: Property 'checked' does not exist on type 'HTMLElement'.
components/Sidebar/index.tsx(124,36): error TS2322: Type '(() => void) | null' is not assignable to type 'MouseEventHandler<HTMLUListElement> | undefined'.
Type 'null' is not assignable to type 'MouseEventHandler<HTMLUListElement> | undefined'.
components/Sidebar/index.tsx(126,16): error TS2786: 'MenuItem' cannot be used as a JSX component.
Its return type 'FunctionComponent<MenuItemProps>' is not a valid JSX element.
Type 'FunctionComponent<MenuItemProps>' is missing the following properties from type 'Element': type, props, key
components/Sidebar/index.tsx(126,66): error TS2322: Type 'StaticImageData' is not assignable to type 'string'.
components/Sidebar/index.tsx(132,10): error TS2786: 'ThemeToggle' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{ chart: any; setChart: any; }, any, any> | null' is not a valid JSX element.
Type 'Component<{ chart: any; setChart: any; }, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<{ chart: any; setChart: any; }, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/home/node/src/node_modules/@types/react-transition-group/node_modules/@types/react/index").ReactNode'.
Type '{}' is not assignable to type 'ReactNode'.
components/TableContainer.tsx(1,52): error TS7016: Could not find a declaration file for module 'react-table'. '/home/node/src/node_modules/react-table/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/react-table` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-table';`
components/TableContainer.tsx(3,27): error TS7031: Binding element 'columns' implicitly has an 'any' type.
components/TableContainer.tsx(3,36): error TS7031: Binding element 'data' implicitly has an 'any' type.
components/TableContainer.tsx(4,77): error TS2531: Object is possibly 'null'.
components/Transaction/AddressTransactions.tsx(25,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
components/Transaction/AddressTransactions.tsx(32,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
components/Transaction/AddressTransactions.tsx(39,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
components/Transaction/AddressTransactions.tsx(46,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
components/Transaction/AddressTransactions.tsx(60,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
components/Transaction/AddressTransactions.tsx(74,3): error TS2322: Type 'Element' is not assignable to type 'FunctionComponent<{}>'.
components/Transaction/AddressTransactions.tsx(79,53): error TS2339: Property 'length' does not exist on type 'Transaction'.
config/backendConfig.ts(7,37): error TS2552: Cannot find name 'array'. Did you mean 'Array'?
config/backendConfig.ts(9,13): error TS2352: Conversion of type 'string | undefined' to type 'boolean' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Type 'string' is not comparable to type 'boolean'.
config/backendConfig.ts(12,13): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(13,13): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(16,13): error TS2352: Conversion of type 'string | undefined' to type 'boolean' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
config/backendConfig.ts(19,13): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(20,13): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(23,15): error TS2352: Conversion of type 'string | undefined' to type 'boolean' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
config/backendConfig.ts(26,13): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(27,13): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(30,12): error TS2352: Conversion of type 'string | undefined' to type 'boolean' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
config/backendConfig.ts(33,13): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(35,15): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(36,15): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(37,15): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(44,55): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ github: boolean | (() => TypeProvider); google: boolean | (() => TypeProvider); facebook: boolean | (() => TypeProvider); apple: boolean | (() => TypeProvider); }'.
No index signature with a parameter of type 'string' was found on type '{ github: boolean | (() => TypeProvider); google: boolean | (() => TypeProvider); facebook: boolean | (() => TypeProvider); apple: boolean | (() => TypeProvider); }'.
config/backendConfig.ts(54,7): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(66,5): error TS2322: Type '{ appName: string | undefined; apiBasePath: string; apiDomain: string | undefined; websiteBasePath: string; websiteDomain: string; showTestNetworks: any; priceAPIURL: string; priceAPIToken: string; redisURL: string; }' is not assignable to type 'AppInfo'.
Types of property 'appName' are incompatible.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
config/backendConfig.ts(71,11): error TS2322: Type '(originalImplementation: APIInterface) => { emailPasswordSignUpPOST: (input: { formFields: { id: string; value: string; }[]; options: APIOptions; userContext: any; }) => Promise<...>; ... 6 more ...; appleRedirectHandlerPOST: ((input: { ...; }) => Promise<...>) | undefined; }' is not assignable to type '(originalImplementation: APIInterface, builder?: OverrideableBuilder<APIInterface> | undefined) => APIInterface'.
Call signature return types '{ emailPasswordSignUpPOST: (input: { formFields: { id: string; value: string; }[]; options: APIOptions; userContext: any; }) => Promise<{ status: "OK"; user: User; session: SessionContainerInterface; } | { ...; }>; ... 6 more ...; appleRedirectHandlerPOST: ((input: { ...; }) => Promise<...>) | undefined; }' and 'APIInterface' are incompatible.
The types returned by 'emailPasswordSignInPOST(...)' are incompatible between these types.
Type 'Promise<{ status: "OK"; user: User; session: SessionContainerInterface; } | undefined>' is not assignable to type 'Promise<{ status: "OK"; user: User; session: SessionContainerInterface; } | { status: "WRONG_CREDENTIALS_ERROR"; }>'.
Type '{ status: "OK"; user: User; session: SessionContainerInterface; } | undefined' is not assignable to type '{ status: "OK"; user: User; session: SessionContainerInterface; } | { status: "WRONG_CREDENTIALS_ERROR"; }'.
Type 'undefined' is not assignable to type '{ status: "OK"; user: User; session: SessionContainerInterface; } | { status: "WRONG_CREDENTIALS_ERROR"; }'.
config/frontendConfig.tsx(5,66): error TS2552: Cannot find name 'array'. Did you mean 'Array'?
config/frontendConfig.tsx(6,43): error TS2552: Cannot find name 'array'. Did you mean 'Array'?
config/frontendConfig.tsx(8,15): error TS2352: Conversion of type 'string | undefined' to type 'boolean' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
config/frontendConfig.tsx(9,15): error TS2352: Conversion of type 'string | undefined' to type 'boolean' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
config/frontendConfig.tsx(10,17): error TS2352: Conversion of type 'string | undefined' to type 'boolean' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
config/frontendConfig.tsx(11,14): error TS2352: Conversion of type 'string | undefined' to type 'boolean' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
config/frontendConfig.tsx(14,11): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ github: false | Provider; google: false | Provider; facebook: false | Provider; apple: false | Provider; }'.
No index signature with a parameter of type 'string' was found on type '{ github: false | Provider; google: false | Provider; facebook: false | Provider; apple: false | Provider; }'.
config/frontendConfig.tsx(14,68): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ github: false | Provider; google: false | Provider; facebook: false | Provider; apple: false | Provider; }'.
No index signature with a parameter of type 'string' was found on type '{ github: false | Provider; google: false | Provider; facebook: false | Provider; apple: false | Provider; }'.
jobs/initJobs.ts(19,49): error TS2322: Type 'RedisMocked | Redis' is not assignable to type 'ConnectionOptions | undefined'.
jobs/initJobs.ts(20,69): error TS2322: Type 'RedisMocked | Redis' is not assignable to type 'ConnectionOptions | undefined'.
jobs/initJobs.ts(21,61): error TS2322: Type 'RedisMocked | Redis' is not assignable to type 'ConnectionOptions | undefined'.
jobs/initJobs.ts(65,43): error TS2322: Type 'RedisMocked | Redis' is not assignable to type 'ConnectionOptions | undefined'.
jobs/workers.ts(52,7): error TS2322: Type 'RedisMocked | Redis' is not assignable to type 'ConnectionOptions | undefined'.
Type 'RedisMocked' is not assignable to type 'ConnectionOptions | undefined'.
Type 'RedisMocked' is missing the following properties from type 'Cluster': options, slots, status, _groupsIds, and 374 more.
jobs/workers.ts(84,7): error TS2322: Type 'RedisMocked | Redis' is not assignable to type 'ConnectionOptions | undefined'.
jobs/workers.ts(122,7): error TS2322: Type 'RedisMocked | Redis' is not assignable to type 'ConnectionOptions | undefined'.
pages/_app.tsx(15,25): error TS2345: Argument of type '{ appInfo: object; recipeList: array; }' is not assignable to parameter of type 'SuperTokensConfig'.
Types of property 'appInfo' are incompatible.
Type '{}' is missing the following properties from type 'AppInfoUserInput': appName, apiDomain, websiteDomain
pages/_app.tsx(44,8): error TS2741: Property 'error' is missing in type '{ children: Element; }' but required in type 'Readonly<IProps>'.
pages/_app.tsx(44,8): error TS2786: 'ErrorBoundary' cannot be used as a JSX component.
Its instance type 'ErrorBoundary' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/home/node/src/node_modules/@types/react-transition-group/node_modules/@types/react/index").ReactNode'.
pages/_app.tsx(45,10): error TS2786: 'Page' cannot be used as a JSX component.
Its return type 'FunctionComponent<PageProps>' is not a valid JSX element.
Type 'FunctionComponent<PageProps>' is missing the following properties from type 'Element': type, props, key
pages/_app.tsx(45,29): error TS2322: Type '{ children: Element; chart: boolean; setChart: Dispatch<SetStateAction<boolean>>; loggedin: any; }' is not assignable to type 'IntrinsicAttributes & PageProps'.
Property 'setChart' does not exist on type 'IntrinsicAttributes & PageProps'.
pages/_app.tsx(46,12): error TS2786: 'Component' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<any, any, any> | null' is not a valid JSX element.
Type 'Component<any, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<any, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/home/node/src/node_modules/@types/react-transition-group/node_modules/@types/react/index").ReactNode'.
pages/account/index.tsx(10,3): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
pages/account/index.tsx(33,22): error TS18048: 'session' is possibly 'undefined'.
pages/account/index.tsx(43,6): error TS2786: 'ThirdPartyEmailPasswordAuthNoSSR' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
pages/api/graphql.ts(1,18): error TS7016: Could not find a declaration file for module 'micro-cors'. '/home/node/src/node_modules/micro-cors/lib/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/micro-cors` if it exists or add a new declaration (.d.ts) file containing `declare module 'micro-cors';`
pages/api/graphql.ts(6,10): error TS2305: Module '"config/appInfo"' has no exported member 'websiteDomain'.
pages/api/graphql.ts(28,28): error TS7006: Parameter 'req' implicitly has an 'any' type.
pages/api/graphql.ts(28,33): error TS7006: Parameter 'res' implicitly has an 'any' type.
pages/api/resolvers/index.ts(3,10): error TS2305: Module '"config/appInfo"' has no exported member 'websiteDomain'.
pages/api/resolvers/index.ts(9,9): error TS2322: Type '{ userId: any; id: string; addresses: any; }[]' is not assignable to type 'Paybutton[]'.
Type '{ userId: any; id: string; addresses: any; }' is missing the following properties from type 'Paybutton': name, buttonData, providerUserId, createdAt, updatedAt
pages/api/resolvers/index.ts(9,37): error TS2339: Property 'userId' does not exist on type 'Paybutton'.
pages/api/resolvers/index.ts(9,49): error TS2339: Property 'addresses' does not exist on type 'Paybutton'.
pages/api/resolvers/index.ts(19,26): error TS7006: Parameter '_' implicitly has an 'any' type.
pages/api/resolvers/index.ts(19,29): error TS7006: Parameter 'args' implicitly has an 'any' type.
pages/api/resolvers/index.ts(25,11): error TS2322: Type '{ id: string; userId: any; addresses: any; }' is not assignable to type 'Paybutton'.
Object literal may only specify known properties, and 'userId' does not exist in type 'Paybutton'.
pages/api/resolvers/index.ts(25,29): error TS2339: Property 'userId' does not exist on type 'Paybutton'.
pages/api/resolvers/index.ts(26,32): error TS2339: Property 'addresses' does not exist on type 'Paybutton'.
pages/auth/[[...path]].tsx(10,3): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
pages/auth/[[...path]].tsx(30,10): error TS2786: 'SuperTokensComponentNoSSR' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
pages/button/[id].tsx(18,3): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
pages/button/[id].tsx(42,15): error TS18048: 'session' is possibly 'undefined'.
pages/button/[id].tsx(43,20): error TS18048: 'context.params' is possibly 'undefined'.
pages/button/[id].tsx(54,6): error TS2786: 'ThirdPartyEmailPasswordAuthNoSSR' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
pages/button/[id].tsx(131,10): error TS2786: 'PaybuttonDetail' cannot be used as a JSX component.
Its return type 'FunctionComponent<{}>' is not a valid JSX element.
Type 'FunctionComponent<{}>' is missing the following properties from type 'Element': type, props, key
pages/button/[id].tsx(133,10): error TS2786: 'AddressTransactions' cannot be used as a JSX component.
Its return type 'FunctionComponent<{}>' is not a valid JSX element.
pages/button/[id].tsx(133,30): error TS2322: Type 'KeyValueT<(Transaction & { address: Address; prices: (PricesOnTransactions & { price: Price; })[]; })[]>' is not assignable to type '{ [address: string]: Transaction; }'.
'string' index signatures are incompatible.
Type '(Transaction & { address: Address; prices: (PricesOnTransactions & { price: Price; })[]; })[]' is missing the following properties from type 'Transaction': id, hash, amount, confirmed, and 2 more.
pages/button/[id].tsx(138,6): error TS2739: Type '{}' is missing the following properties from type 'PageProps': children, chart
pages/button/[id].tsx(138,6): error TS2786: 'Page' cannot be used as a JSX component.
Its return type 'FunctionComponent<PageProps>' is not a valid JSX element.
pages/buttons/index.tsx(14,3): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
pages/buttons/index.tsx(37,22): error TS18048: 'session' is possibly 'undefined'.
pages/buttons/index.tsx(53,6): error TS2786: 'ThirdPartyEmailPasswordAuthNoSSR' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
pages/buttons/index.tsx(54,8): error TS2786: 'ProtectedPage' cannot be used as a JSX component.
Its instance type 'ProtectedPage' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.
pages/buttons/index.tsx(62,10): error TS2540: Cannot assign to 'props' because it is a read-only property.
pages/buttons/index.tsx(88,41): error TS7006: Parameter 'walletWithPaymentInfo' implicitly has an 'any' type.
pages/buttons/index.tsx(126,10): error TS2786: 'PaybuttonList' cannot be used as a JSX component.
Its return type 'FunctionComponent<IProps>' is not a valid JSX element.
Type 'FunctionComponent<IProps>' is missing the following properties from type 'Element': type, props, key
pages/buttons/index.tsx(127,60): error TS2322: Type '(Paybutton & { addresses: { address: Address; }[]; })[]' is not assignable to type '[]'.
Target allows only 0 element(s) but source may have more.
pages/dashboard/index.tsx(21,3): error TS2322: Type 'Element' is not assignable to type 'FunctionComponent<NumberBlockProps>'.
Type 'Element' provides no match for the signature '(props: PropsWithChildren<NumberBlockProps>, context?: any): ReactElement<any, any> | null'.
pages/dashboard/index.tsx(30,3): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
Type 'Promise<unknown>' is not assignable to type 'LoaderComponent<{}>'.
Type 'unknown' is not assignable to type 'ComponentType<{}> | ComponentModule<{}>'.
pages/dashboard/index.tsx(53,22): error TS18048: 'session' is possibly 'undefined'.
pages/dashboard/index.tsx(77,6): error TS2786: 'ThirdPartyEmailPasswordAuthNoSSR' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
Type 'Component<{}, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<{}, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/home/node/src/node_modules/@types/react-transition-group/node_modules/@types/react/index").ReactNode'.
pages/dashboard/index.tsx(80,10): error TS2786: 'NumberBlock' cannot be used as a JSX component.
Its return type 'FunctionComponent<NumberBlockProps>' is not a valid JSX element.
Type 'FunctionComponent<NumberBlockProps>' is missing the following properties from type 'Element': type, props, key
pages/dashboard/index.tsx(80,22): error TS2322: Type 'string' is not assignable to type 'number'.
pages/dashboard/index.tsx(80,71): error TS2339: Property 'total' does not exist on type 'never'.
pages/dashboard/index.tsx(81,10): error TS2786: 'NumberBlock' cannot be used as a JSX component.
Its return type 'FunctionComponent<NumberBlockProps>' is not a valid JSX element.
pages/dashboard/index.tsx(81,22): error TS2322: Type 'string' is not assignable to type 'number'.
pages/dashboard/index.tsx(81,60): error TS2339: Property 'total' does not exist on type 'never'.
pages/dashboard/index.tsx(82,10): error TS2786: 'NumberBlock' cannot be used as a JSX component.
Its return type 'FunctionComponent<NumberBlockProps>' is not a valid JSX element.
pages/dashboard/index.tsx(82,43): error TS2339: Property 'total' does not exist on type 'never'.
pages/dashboard/index.tsx(85,59): error TS2339: Property 'sevenDays' does not exist on type 'never'.
pages/dashboard/index.tsx(85,180): error TS2339: Property 'sevenDays' does not exist on type 'never'.
pages/dashboard/index.tsx(86,59): error TS2339: Property 'thirtyDays' does not exist on type 'never'.
pages/dashboard/index.tsx(86,181): error TS2339: Property 'thirtyDays' does not exist on type 'never'.
pages/dashboard/index.tsx(87,59): error TS2339: Property 'year' does not exist on type 'never'.
pages/dashboard/index.tsx(87,175): error TS2339: Property 'year' does not exist on type 'never'.
pages/dashboard/index.tsx(88,24): error TS2339: Property 'all' does not exist on type 'never'.
pages/dashboard/index.tsx(88,108): error TS2339: Property 'all' does not exist on type 'never'.
pages/dashboard/index.tsx(88,223): error TS2339: Property 'all' does not exist on type 'never'.
pages/dashboard/index.tsx(94,49): error TS2339: Property 'all' does not exist on type 'never'.
pages/dashboard/index.tsx(94,99): error TS2339: Property 'year' does not exist on type 'never'.
pages/dashboard/index.tsx(94,146): error TS2339: Property 'thirtyDays' does not exist on type 'never'.
pages/dashboard/index.tsx(94,218): error TS2339: Property 'totalRevenue' does not exist on type 'never'.
pages/dashboard/index.tsx(97,14): error TS2786: 'Chart' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<Props, any, any> | null' is not a valid JSX element.
Type 'Component<Props, any, any>' is not assignable to type 'Element | ElementClass | null'.
Type 'Component<Props, any, any>' is not assignable to type 'ElementClass'.
The types returned by 'render()' are incompatible between these types.
Type 'React.ReactNode' is not assignable to type 'import("/home/node/src/node_modules/@types/react-transition-group/node_modules/@types/react/index").ReactNode'.
pages/dashboard/index.tsx(97,39): error TS2339: Property 'revenue' does not exist on type 'never'.
pages/dashboard/index.tsx(103,49): error TS2339: Property 'all' does not exist on type 'never'.
pages/dashboard/index.tsx(103,99): error TS2339: Property 'year' does not exist on type 'never'.
pages/dashboard/index.tsx(103,146): error TS2339: Property 'thirtyDays' does not exist on type 'never'.
pages/dashboard/index.tsx(103,217): error TS2339: Property 'totalPayments' does not exist on type 'never'.
pages/dashboard/index.tsx(106,14): error TS2741: Property 'usd' is missing in type '{ data: any; }' but required in type 'Props'.
pages/dashboard/index.tsx(106,14): error TS2786: 'Chart' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<Props, any, any> | null' is not a valid JSX element.
pages/dashboard/index.tsx(106,39): error TS2339: Property 'payments' does not exist on type 'never'.
pages/index.tsx(11,3): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
pages/index.tsx(34,22): error TS18048: 'session' is possibly 'undefined'.
pages/index.tsx(43,3): error TS2740: Type 'Element' is missing the following properties from type 'Component<{}, {}, any>': context, setState, forceUpdate, render, and 2 more.
pages/index.tsx(44,6): error TS2741: Property 'userId' is missing in type '{}' but required in type 'PaybuttonsProps'.
pages/index.tsx(49,3): error TS2322: Type 'Element' is not assignable to type 'Component<{}, {}, any>'.
pages/index.tsx(51,6): error TS2786: 'ThirdPartyEmailPasswordAuthNoSSR' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
pages/index.tsx(52,8): error TS2786: 'ProtectedPage' cannot be used as a JSX component.
Its return type 'Component<{}, {}, any>' is not a valid JSX element.
Type 'Component<{}, {}, any>' is missing the following properties from type 'Element': type, key
pages/networks/index.tsx(12,3): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
pages/networks/index.tsx(36,15): error TS18048: 'session' is possibly 'undefined'.
pages/networks/index.tsx(52,10): error TS2540: Cannot assign to 'props' because it is a read-only property.
pages/networks/index.tsx(73,14): error TS2366: Function lacks ending return statement and return type does not include 'undefined'.
pages/networks/index.tsx(74,9): error TS2839: This condition will always return 'true' since JavaScript compares objects by reference, not value.
pages/networks/index.tsx(78,12): error TS2786: 'NetworkList' cannot be used as a JSX component.
Its return type 'FunctionComponent<IProps>' is not a valid JSX element.
Type 'FunctionComponent<IProps>' is missing the following properties from type 'Element': type, props, key
pages/networks/index.tsx(78,24): error TS2322: Type 'Network[]' is not assignable to type 'NetworkWithConnectionInfo[]'.
Property 'connected' is missing in type 'Network' but required in type 'NetworkWithConnectionInfo'.
pages/networks/index.tsx(87,6): error TS2786: 'ThirdPartyEmailPasswordAuthNoSSR' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
pages/networks/index.tsx(88,6): error TS2786: 'ProtectedPage' cannot be used as a JSX component.
Its instance type 'ProtectedPage' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
pages/payments/index.tsx(20,3): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
pages/payments/index.tsx(43,22): error TS18048: 'session' is possibly 'undefined'.
pages/payments/index.tsx(69,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
pages/payments/index.tsx(76,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
pages/payments/index.tsx(83,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
pages/payments/index.tsx(96,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
pages/payments/index.tsx(111,16): error TS7006: Parameter 'cellProps' implicitly has an 'any' type.
pages/payments/index.tsx(127,6): error TS2786: 'ThirdPartyEmailPasswordAuthNoSSR' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
pages/wallets/index.tsx(14,3): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'DynamicOptions<{}> | Loader<{}>'.
pages/wallets/index.tsx(37,22): error TS18048: 'session' is possibly 'undefined'.
pages/wallets/index.tsx(52,6): error TS2786: 'ThirdPartyEmailPasswordAuthNoSSR' cannot be used as a JSX component.
Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element.
pages/wallets/index.tsx(53,8): error TS2786: 'ProtectedPage' cannot be used as a JSX component.
Its instance type 'ProtectedPage' is not a valid JSX element.
The types returned by 'render()' are incompatible between these types.
Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
I think this can be moved to v2, since we are able now to ignore this and generate a production environment.
The files:
... contain linting issues. Complete error report: