PayButton / paybutton-server

Manage eCash payments received through your online business.
MIT License
5 stars 2 forks source link

Fix linting issues so there is no need to ignore ESLint upon build #518

Open chedieck opened 1 year ago

chedieck commented 1 year ago

The files:

./components/Wallet/WalletForm.tsx
./components/Sidebar/themetoggle.js
./components/Paybutton/PaybuttonForm.tsx
./components/AddPayButtonForm.tsx
./pages/index.tsx
./pages/auth/[[...path]].tsx
./pages/api/schemas/index.ts
./pages/api/resolvers/index.ts
./pages/api/graphql.ts
./pages/_document.js
./pages/_app.tsx

... contain linting issues. Complete error report:

Failed to compile.

./pages/_app.tsx
18:78  Error: Block must not be padded by blank lines.  padded-blocks
20:43  Error: Extra semicolon.  @typescript-eslint/semi

./pages/_document.js
1:20  Error: 'Html' is defined but never used.  no-unused-vars
1:26  Error: 'Head' is defined but never used.  no-unused-vars
1:32  Error: 'Main' is defined but never used.  no-unused-vars
1:38  Error: 'NextScript' is defined but never used.  no-unused-vars
1:56  Error: Strings must use singlequote.  quotes
1:71  Error: Extra semicolon.  semi
4:31  Error: Missing space before function parentheses.  space-before-function-paren
5:61  Error: Extra semicolon.  semi
6:31  Error: Extra semicolon.  semi
9:9  Error: Missing space before function parentheses.  space-before-function-paren
20:4  Error: Extra semicolon.  semi
30:6  Error: Extra semicolon.  semi
34:26  Error: Extra semicolon.  semi
34:27  Error: Newline required at end of file but not found.  eol-last

./pages/api/graphql.ts
1:18  Error: Strings must use singlequote.  @typescript-eslint/quotes
1:30  Error: Extra semicolon.  @typescript-eslint/semi
2:7  Error: Multiple spaces found before '{'.  no-multi-spaces
2:10  Error: Multiple spaces found before 'ApolloServer'.  no-multi-spaces
2:24  Error: Multiple spaces found before '}'.  no-multi-spaces
2:27  Error: Multiple spaces found before 'from'.  no-multi-spaces
2:33  Error: Multiple spaces found before '"apollo-server-micro"'.  no-multi-spaces
2:35  Error: Strings must use singlequote.  @typescript-eslint/quotes
2:56  Error: Extra semicolon.  @typescript-eslint/semi
3:7  Error: Multiple spaces found before '{'.  no-multi-spaces
3:10  Error: Multiple spaces found before 'typeDefs'.  no-multi-spaces
3:20  Error: Multiple spaces found before '}'.  no-multi-spaces
3:23  Error: Multiple spaces found before 'from'.  no-multi-spaces
3:29  Error: Multiple spaces found before '"./schemas"'.  no-multi-spaces
3:33  Error: Strings must use singlequote.  @typescript-eslint/quotes
3:44  Error: Extra semicolon.  @typescript-eslint/semi
4:28  Error: Strings must use singlequote.  @typescript-eslint/quotes
4:34  Error: Extra semicolon.  @typescript-eslint/semi
5:7  Error: Multiple spaces found before '{'.  no-multi-spaces
5:10  Error: Multiple spaces found before 'resolvers'.  no-multi-spaces
5:21  Error: Multiple spaces found before '}'.  no-multi-spaces
5:24  Error: Multiple spaces found before 'from'.  no-multi-spaces
5:30  Error: Multiple spaces found before '"./resolvers"'.  no-multi-spaces
5:32  Error: Strings must use singlequote.  @typescript-eslint/quotes
5:45  Error: Extra semicolon.  @typescript-eslint/semi
7:31  Error: Unexpected any value in conditional. An explicit comparison or type cast is required.  @typescript-eslint/strict-boolean-expressions
8:31  Error: '||' should be placed at the end of the line.  operator-linebreak
9:39  Error: Unexpected space before the ':'.  @typescript-eslint/type-annotation-spacing
9:73  Error: Expected '===' and instead saw '=='.  eqeqeq
11:1  Error: More than 1 blank line not allowed.  no-multiple-empty-lines
12:32  Error: Multiple spaces found before '='.  no-multi-spaces
13:1  Error: Expected indentation of 2 spaces but found 4.  @typescript-eslint/indent
14:1  Error: Expected indentation of 4 spaces but found 8.  @typescript-eslint/indent
15:1  Error: Expected indentation of 2 spaces but found 4.  @typescript-eslint/indent
16:2  Error: Extra semicolon.  @typescript-eslint/semi
18:20  Error: Extra semicolon.  @typescript-eslint/semi
21:1  Error: Expected indentation of 2 spaces but found 4.  @typescript-eslint/indent
22:1  Error: Expected indentation of 2 spaces but found 4.  @typescript-eslint/indent
23:1  Error: Expected indentation of 2 spaces but found 4.  @typescript-eslint/indent
23:51  Error: Unexpected trailing comma.  comma-dangle
24:3  Error: Extra semicolon.  @typescript-eslint/semi
26:35  Error: Extra semicolon.  @typescript-eslint/semi
29:1  Error: Expected indentation of 2 spaces but found 4.  @typescript-eslint/indent
29:24  Error: Strings must use singlequote.  @typescript-eslint/quotes
30:1  Error: Expected indentation of 4 spaces but found 10.  @typescript-eslint/indent
30:20  Error: Extra semicolon.  @typescript-eslint/semi
31:1  Error: Expected indentation of 4 spaces but found 10.  @typescript-eslint/indent
31:23  Error: Extra semicolon.  @typescript-eslint/semi
32:1  Error: Expected indentation of 2 spaces but found 8.  @typescript-eslint/indent
34:1  Error: Expected indentation of 2 spaces but found 4.  @typescript-eslint/indent
34:22  Error: Extra semicolon.  @typescript-eslint/semi
35:1  Error: Expected indentation of 2 spaces but found 4.  @typescript-eslint/indent
35:40  Error: Strings must use singlequote.  @typescript-eslint/quotes
35:67  Error: Extra semicolon.  @typescript-eslint/semi
36:3  Error: Extra semicolon.  @typescript-eslint/semi

./pages/api/resolvers/index.ts
1:19  Error: Strings must use singlequote.  @typescript-eslint/quotes
1:26  Error: Extra semicolon.  @typescript-eslint/semi
7:7  Error: Unnecessary try/catch wrapper.  no-useless-catch
8:58  Error: Invalid type "any" of template literal expression.  @typescript-eslint/restrict-template-expressions
13:12  Error: Extra semicolon.  @typescript-eslint/semi
15:1  Error: Unexpected tab character.  no-tabs
15:1  Error: Expected indentation of 8 spaces but found 1 tab.  @typescript-eslint/indent
15:2  Error: Expected space or tab after '//' in comment.  spaced-comment
16:20  Error: Extra semicolon.  @typescript-eslint/semi
20:7  Error: Unnecessary try/catch wrapper.  no-useless-catch
21:56  Error: Invalid type "any" of template literal expression.  @typescript-eslint/restrict-template-expressions
22:1  Error: Unexpected tab character.  no-tabs
22:1  Error: Expected indentation of 8 spaces but found 1 tab.  @typescript-eslint/indent
27:10  Error: Extra semicolon.  @typescript-eslint/semi
29:20  Error: Extra semicolon.  @typescript-eslint/semi
33:2  Error: Extra semicolon.  @typescript-eslint/semi

./pages/api/schemas/index.ts
1:7  Error: Multiple spaces found before '{'.  no-multi-spaces
1:10  Error: Multiple spaces found before 'gql'.  no-multi-spaces
1:15  Error: Multiple spaces found before '}'.  no-multi-spaces
1:18  Error: Multiple spaces found before 'from'.  no-multi-spaces
1:24  Error: Multiple spaces found before '"apollo-server-micro"'.  no-multi-spaces
1:26  Error: Strings must use singlequote.  @typescript-eslint/quotes
1:47  Error: Extra semicolon.  @typescript-eslint/semi
1:48  Error: Trailing spaces not allowed.  no-trailing-spaces
3:7  Error: Multiple spaces found before 'const'.  no-multi-spaces
3:14  Error: Multiple spaces found before 'typeDefs'.  no-multi-spaces
3:24  Error: Multiple spaces found before '='.  no-multi-spaces
3:27  Error: Multiple spaces found before 'gql'.  no-multi-spaces

./pages/auth/[[...path]].tsx
10:16  Error: Promise constructor parameters must be named to match "^_?resolve$"  promise/param-names
14:16  Error: Missing return type on function.  @typescript-eslint/explicit-function-return-type
14:29  Error: Missing space before function parentheses.  @typescript-eslint/space-before-function-paren
16:9  Error: This expression unnecessarily compares a boolean value to a boolean instead of using it directly.  @typescript-eslint/no-unnecessary-boolean-literal-compare
17:7  Error: Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator.  @typescript-eslint/no-floating-promises

./pages/index.tsx
50:1  Error: Trailing spaces not allowed.  no-trailing-spaces
54:1  Error: Trailing spaces not allowed.  no-trailing-spaces

./components/AddPayButtonForm.tsx
1:19  Error: Strings must use singlequote.  @typescript-eslint/quotes
1:26  Error: Extra semicolon.  @typescript-eslint/semi
4:3  Error: 'componentTypes' is defined but never used.  @typescript-eslint/no-unused-vars
4:17  Error: Unexpected trailing comma.  comma-dangle
5:8  Error: Strings must use singlequote.  @typescript-eslint/quotes
5:48  Error: Extra semicolon.  @typescript-eslint/semi
7:18  Error: Unexpected trailing comma.  comma-dangle
8:8  Error: Strings must use singlequote.  @typescript-eslint/quotes
8:49  Error: Extra semicolon.  @typescript-eslint/semi
9:26  Error: Strings must use singlequote.  @typescript-eslint/quotes
9:81  Error: Extra semicolon.  @typescript-eslint/semi
14:18  Error: Strings must use singlequote.  @typescript-eslint/quotes
15:13  Error: Strings must use singlequote.  @typescript-eslint/quotes
16:14  Error: Strings must use singlequote.  @typescript-eslint/quotes
17:19  Error: Strings must use singlequote.  @typescript-eslint/quotes
18:20  Error: Strings must use singlequote.  @typescript-eslint/quotes
18:60  Error: Unexpected trailing comma.  comma-dangle
19:6  Error: Unexpected trailing comma.  comma-dangle
20:4  Error: Unexpected trailing comma.  comma-dangle
21:2  Error: Extra semicolon.  @typescript-eslint/semi
23:14  Error: Missing return type on function.  @typescript-eslint/explicit-function-return-type
30:2  Error: Extra semicolon.  @typescript-eslint/semi
32:20  Error: Extra semicolon.  @typescript-eslint/semi

./components/Paybutton/PaybuttonForm.tsx
25:7  Error: 'walletOptions' is never reassigned. Use 'const' instead.  prefer-const
27:7  Error: Unnecessarily quoted property 'value' found.  quote-props
27:7  Error: Strings must use singlequote.  @typescript-eslint/quotes
28:7  Error: Unnecessarily quoted property 'label' found.  quote-props
28:7  Error: Strings must use singlequote.  @typescript-eslint/quotes
45:30  Error: Promise-returning function provided to attribute where a void return was expected.  @typescript-eslint/no-misused-promises
51:44  Error: Trailing spaces not allowed.  no-trailing-spaces
58:1  Error: More than 1 blank line not allowed.  no-multiple-empty-lines

./components/Sidebar/themetoggle.js
1:8  Error: 'React' is defined but never used.  no-unused-vars
1:44  Error: Strings must use singlequote.  quotes
1:51  Error: Extra semicolon.  semi
4:22  Error: A space is required after '{'.  object-curly-spacing
4:38  Error: A space is required before '}'.  object-curly-spacing
4:44  Error: Block must not be padded by blank lines.  padded-blocks
6:1  Error: Expected indentation of 2 spaces but found 4.  indent
6:80  Error: Extra semicolon.  semi
7:1  Error: Expected indentation of 2 spaces but found 4.  indent
7:43  Error: Strings must use singlequote.  quotes
7:53  Error: Strings must use singlequote.  quotes
7:62  Error: Strings must use singlequote.  quotes
7:69  Error: Extra semicolon.  semi
8:1  Error: Expected indentation of 2 spaces but found 4.  indent
8:56  Error: Extra semicolon.  semi
10:1  Error: Expected indentation of 2 spaces but found 4.  indent
11:1  Error: Expected indentation of 4 spaces but found 8.  indent
11:50  Error: Extra semicolon.  semi
12:1  Error: Expected indentation of 4 spaces but found 8.  indent
12:37  Error: Strings must use singlequote.  quotes
12:58  Error: Extra semicolon.  semi
13:1  Error: Expected indentation of 2 spaces but found 6.  indent
13:24  Error: Extra semicolon.  semi
15:1  Error: Expected indentation of 2 spaces but found 6.  indent
16:1  Error: Expected indentation of 4 spaces but found 7.  indent
17:1  Error: Expected indentation of 2 spaces but found 6.  indent
17:23  Error: Extra semicolon.  semi
18:1  Error: Trailing spaces not allowed.  no-trailing-spaces
19:1  Error: Expected indentation of 2 spaces but found 4.  indent
20:16  Error: Trailing spaces not allowed.  no-trailing-spaces
23:28  Error: Requires a space after '{'.  block-spacing
23:86  Error: Requires a space before '}'.  block-spacing
26:46  Error: Strings must use singlequote.  quotes
26:91  Error: Operator ':' must be spaced.  space-infix-ops
27:65  Error: Strings must use singlequote.  quotes
27:86  Error: Operator ':' must be spaced.  space-infix-ops
29:1  Error: Expected indentation of 2 spaces but found 4.  indent
29:6  Error: Extra semicolon.  semi
30:1  Error: Expected indentation of 0 spaces but found 2.  indent
30:4  Error: Extra semicolon.  semi
31:1  Error: Trailing spaces not allowed.  no-trailing-spaces
32:27  Error: Extra semicolon.  semi
32:28  Error: Newline required at end of file but not found.  eol-last

./components/Wallet/WalletForm.tsx
36:41  Error: Missing space before function parentheses.  @typescript-eslint/space-before-function-paren
38:30  Error: This expression unnecessarily compares a boolean value to a boolean instead of using it directly.  @typescript-eslint/no-unnecessary-boolean-literal-compare
43:31  Error: This expression unnecessarily compares a boolean value to a boolean instead of using it directly.  @typescript-eslint/no-unnecessary-boolean-literal-compare
78:32  Error: Promise-returning function provided to attribute where a void return was expected.  @typescript-eslint/no-misused-promises
134:1  Error: Expected indentation of 8 spaces but found 10.  @typescript-eslint/indent

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
error Command failed with exit code 1.
chedieck commented 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'.
chedieck commented 1 year ago

I think this can be moved to v2, since we are able now to ignore this and generate a production environment.