toddmedema / electrify

Take Charge of the Power Market
http://electrifygame.com
MIT License
6 stars 2 forks source link

Upgrade Node to v21 #72

Closed toddmedema closed 3 months ago

toddmedema commented 3 months ago

Closes #49

Still throwing a lot of errors:

ERROR in ./src/Style.scss (/Users/todd/code/electrify/node_modules/css-loader!/Users/todd/code/electrify/node_modules/sass-loader/dist/cjs.js!./src/Style.scss)
Module build failed (from /Users/todd/code/electrify/node_modules/sass-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
    at Object.loader (/Users/todd/code/electrify/node_modules/sass-loader/dist/index.js:19:24)
 @ ./src/Style.scss 2:14-127 21:1-42:3 22:19-132
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in /Users/todd/code/electrify/node_modules/@gilbarbara/helpers/dist/index.js 741:21
Module parse failed: Unexpected token (741:21)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|     }
|   }
>   return defaultCase?.();
| }
| async function copyToClipboard(input) {
 @ /Users/todd/code/electrify/node_modules/react-joyride/dist/index.mjs 323:0-49 328:0-43 376:14-18 569:9-13 618:12-16 656:0-64 667:16-26 667:27-32
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in [at-loader] ./src/Globals.tsx:11:30 
    TS2339: Property 'initializeApp' does not exist on type 'typeof import("/Users/todd/code/electrify/node_modules/firebase/index")'.

ERROR in [at-loader] ./src/Globals.tsx:23:32 
    TS2339: Property 'auth' does not exist on type 'typeof import("/Users/todd/code/electrify/node_modules/firebase/index")'.

ERROR in [at-loader] ./src/Globals.tsx:89:24 
    TS2339: Property 'firestore' does not exist on type 'typeof import("/Users/todd/code/electrify/node_modules/firebase/index")'.

ERROR in [at-loader] ./src/components/views/NewGameDetailsContainer.tsx:32:3 
    TS2345: Argument of type 'typeof default' is not assignable to parameter of type 'JSXElementConstructor<never>'.
  Type 'typeof default' is not assignable to type 'new (props: never, deprecatedLegacyContext?: any) => Component<any, any, any>'.
    Construct signature return types 'default' and 'Component<any, any, any>' are incompatible.
      The types of 'refs' are incompatible between these types.
        Type '{ [key: string]: React.ReactInstance; }' is not assignable to type '{ [key: string]: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance; }'.
          Index signatures are incompatible.
            Type 'React.ReactInstance' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance'.
              Type 'Component<any, {}, any>' is not assignable to type 'ReactInstance'.
                Type 'React.Component<any, {}, any>' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").Component<any, {}, any>'.
                  The types returned by 'render()' are incompatible between these types.
                    Type 'React.ReactNode' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactNode'.
                      Type '{}' is not assignable to type 'ReactNode'.
                        Type '{}' is missing the following properties from type 'ReactPortal': children, type, props, key

ERROR in [at-loader] ./src/components/views/LoadingContainer.tsx:59:3 
    TS2345: Argument of type 'typeof Loading' is not assignable to parameter of type 'JSXElementConstructor<never>'.
  Type 'typeof Loading' is not assignable to type 'new (props: never, deprecatedLegacyContext?: any) => Component<any, any, any>'.
    Construct signature return types 'Loading' and 'Component<any, any, any>' are incompatible.
      The types of 'refs' are incompatible between these types.
        Type '{ [key: string]: React.ReactInstance; }' is not assignable to type '{ [key: string]: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance; }'.
          Index signatures are incompatible.
            Type 'React.ReactInstance' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance'.
              Type 'Component<any, {}, any>' is not assignable to type 'ReactInstance'.
                Type 'React.Component<any, {}, any>' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").Component<any, {}, any>'.

ERROR in [at-loader] ../../shared/Theme.tsx:8:28 
    TS2307: Cannot find module '@material-ui/core/styles/createMuiTheme'.

ERROR in [at-loader] ./src/components/base/AudioContainer.tsx:33:3 
    TS2345: Argument of type 'typeof Audio' is not assignable to parameter of type 'JSXElementConstructor<never>'.
  Type 'typeof Audio' is not assignable to type 'new (props: never, deprecatedLegacyContext?: any) => Component<any, any, any>'.
    Construct signature return types 'Audio' and 'Component<any, any, any>' are incompatible.
      The types of 'refs' are incompatible between these types.
        Type '{ [key: string]: React.ReactInstance; }' is not assignable to type '{ [key: string]: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance; }'.
          Index signatures are incompatible.
            Type 'React.ReactInstance' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance'.
              Type 'Component<any, {}, any>' is not assignable to type 'ReactInstance'.
                Type 'React.Component<any, {}, any>' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").Component<any, {}, any>'.
                  The types returned by 'render()' are incompatible between these types.
                    Type 'React.ReactNode' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactNode'.
                      Type '{}' is not assignable to type 'ReactNode'.
                        Type '{}' is missing the following properties from type 'ReactPortal': children, type, props, key

ERROR in [at-loader] ./src/components/base/ChartSupplyDemand.tsx:101:52 
    TS2322: Type '"#f44336"' is not assignable to type '"#1e88e5" | "#212121"'.

ERROR in [at-loader] ./src/components/base/ChartSupplyDemand.tsx:114:9 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.
  The types returned by 'render()' are incompatible between these types.
    Type 'ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>' is not assignable to type 'ReactNode'.
      Property 'children' is missing in type 'ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>' but required in type 'ReactPortal'.

ERROR in [at-loader] ./src/components/base/ChartSupplyDemand.tsx:126:9 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartSupplyDemand.tsx:138:9 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.
  The types returned by 'render()' are incompatible between these types.
    Type 'React.ReactNode' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactNode'.
      Type '{}' is not assignable to type 'ReactNode'.
        Type '{}' is not assignable to type 'ReactPortal'.

ERROR in [at-loader] ./src/components/base/ChartSupplyDemand.tsx:150:9 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.
  The types returned by 'render()' are incompatible between these types.
    Type 'React.ReactNode' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactNode'.
      Type '{}' is not assignable to type 'ReactNode'.
        Type '{}' is not assignable to type 'ReactPortal'.

ERROR in [at-loader] ./src/components/base/ChartSupplyDemand.tsx:161:9 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartSupplyDemand.tsx:172:31 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartSupplyDemand.tsx:184:40 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartSupplyDemand.tsx:194:20 
    TS2605: JSX element type 'VictoryLegendBase' is not a constructor function for JSX elements.
  The types returned by 'render()' are incompatible between these types.
    Type 'ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>' is not assignable to type 'ReactNode'.
      Type 'ReactElement<any, string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)>' is not assignable to type 'ReactPortal'.

ERROR in [at-loader] ./src/components/base/NavigationContainer.tsx:25:3 
    TS2345: Argument of type 'typeof Navigation' is not assignable to parameter of type 'JSXElementConstructor<never>'.
  Type 'typeof Navigation' is not assignable to type 'new (props: never, deprecatedLegacyContext?: any) => Component<any, any, any>'.
    Construct signature return types 'Navigation' and 'Component<any, any, any>' are incompatible.
      The types of 'refs' are incompatible between these types.
        Type '{ [key: string]: React.ReactInstance; }' is not assignable to type '{ [key: string]: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance; }'.
          Index signatures are incompatible.
            Type 'React.ReactInstance' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance'.
              Type 'Component<any, {}, any>' is not assignable to type 'ReactInstance'.
                Type 'React.Component<any, {}, any>' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").Component<any, {}, any>'.

ERROR in [at-loader] ./src/components/views/FacilitiesContainer.tsx:33:3 
    TS2345: Argument of type 'typeof default' is not assignable to parameter of type 'JSXElementConstructor<never>'.
  Type 'typeof default' is not assignable to type 'new (props: never, deprecatedLegacyContext?: any) => Component<any, any, any>'.
    Construct signature return types 'default' and 'Component<any, any, any>' are incompatible.
      The types of 'refs' are incompatible between these types.
        Type '{ [key: string]: React.ReactInstance; }' is not assignable to type '{ [key: string]: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance; }'.
          Index signatures are incompatible.
            Type 'React.ReactInstance' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance'.
              Type 'Component<any, {}, any>' is not assignable to type 'ReactInstance'.
                Type 'React.Component<any, {}, any>' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").Component<any, {}, any>'.

ERROR in [at-loader] ./src/components/base/ChartFinances.tsx:52:9 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartFinances.tsx:63:9 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartFinances.tsx:72:9 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartFinances.tsx:82:9 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/views/FinancesContainer.tsx:23:3 
    TS2345: Argument of type 'typeof default' is not assignable to parameter of type 'JSXElementConstructor<never>'.
  Type 'typeof default' is not assignable to type 'new (props: never, deprecatedLegacyContext?: any) => Component<any, any, any>'.
    Construct signature return types 'default' and 'Component<any, any, any>' are incompatible.
      The types of 'refs' are incompatible between these types.
        Type '{ [key: string]: React.ReactInstance; }' is not assignable to type '{ [key: string]: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance; }'.
          Index signatures are incompatible.
            Type 'React.ReactInstance' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance'.
              Type 'Component<any, {}, any>' is not assignable to type 'ReactInstance'.
                Type 'React.Component<any, {}, any>' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").Component<any, {}, any>'.

ERROR in [at-loader] ./src/components/base/ChartForecastFuelPrices.tsx:36:11 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastFuelPrices.tsx:48:11 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastFuelPrices.tsx:59:11 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastFuelPrices.tsx:71:11 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastFuelPrices.tsx:83:11 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastFuelPrices.tsx:95:11 
    TS2605: JSX element type 'VictoryLegendBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastSupplyDemand.tsx:41:9 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastSupplyDemand.tsx:53:9 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastSupplyDemand.tsx:65:9 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastSupplyDemand.tsx:76:9 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastSupplyDemand.tsx:86:9 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastWeather.tsx:35:11 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastWeather.tsx:48:11 
    TS2605: JSX element type 'VictoryAxisBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastWeather.tsx:57:11 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastWeather.tsx:69:11 
    TS2605: JSX element type '{ state: {}; getEventState: (eventKey: string | number, namespace: string, childType?: string | undefined) => any; getScopedEvents: (events: any, namespace: any, childType: any, baseProps: any) => {}; ... 43 more ...; events: unknown; }' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/base/ChartForecastWeather.tsx:81:11 
    TS2605: JSX element type 'VictoryLegendBase' is not a constructor function for JSX elements.

ERROR in [at-loader] ./src/components/views/ForecastsContainer.tsx:20:3 
    TS2345: Argument of type 'typeof default' is not assignable to parameter of type 'JSXElementConstructor<never>'.
  Type 'typeof default' is not assignable to type 'new (props: never, deprecatedLegacyContext?: any) => Component<any, any, any>'.
    Construct signature return types 'default' and 'Component<any, any, any>' are incompatible.
      The types of 'refs' are incompatible between these types.
        Type '{ [key: string]: React.ReactInstance; }' is not assignable to type '{ [key: string]: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance; }'.
          Index signatures are incompatible.
            Type 'React.ReactInstance' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance'.
              Type 'Component<any, {}, any>' is not assignable to type 'ReactInstance'.
                Type 'React.Component<any, {}, any>' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").Component<any, {}, any>'.

ERROR in [at-loader] ./src/components/views/ManualContainer.tsx:23:3 
    TS2345: Argument of type 'typeof Manual' is not assignable to parameter of type 'JSXElementConstructor<never>'.
  Type 'typeof Manual' is not assignable to type 'new (props: never, deprecatedLegacyContext?: any) => Component<any, any, any>'.
    Construct signature return types 'Manual' and 'Component<any, any, any>' are incompatible.
      The types of 'refs' are incompatible between these types.
        Type '{ [key: string]: React.ReactInstance; }' is not assignable to type '{ [key: string]: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance; }'.
          Index signatures are incompatible.
            Type 'React.ReactInstance' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance'.
              Type 'Component<any, {}, any>' is not assignable to type 'ReactInstance'.
                Type 'React.Component<any, {}, any>' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").Component<any, {}, any>'.

ERROR in [at-loader] ./src/components/Compositor.tsx:4:8 
    TS6133: 'Joyride' is declared but its value is never read.

ERROR in [at-loader] ./src/components/Compositor.tsx:176:9 
    TS2605: JSX element type 'GlobalHotKeys' is not a constructor function for JSX elements.
  The types returned by 'render()' are incompatible between these types.
    Type 'React.ReactNode' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactNode'.
      Type '{}' is not assignable to type 'ReactNode'.
        Type '{}' is not assignable to type 'ReactPortal'.

ERROR in [at-loader] ./src/components/Compositor.tsx:177:10 
    TS2769: No overload matches this call.
  Overload 1 of 2, '(props: TransitionGroupProps<"div", any>): TransitionGroup', gave the following error.
    The types of 'childFactory(...).type' are incompatible between these types.
      Type 'string | ((props: any) => ReactElement<any, any> | null) | (new (props: any) => Component<any, any, any>)' is not assignable to type 'string | ((props: any, deprecatedLegacyContext?: any) => ReactElement<any, any> | null) | (new (props: any, deprecatedLegacyContext?: any) => Component<any, any, any>)'.
        Type 'new (props: any) => Component<any, any, any>' is not assignable to type 'string | ((props: any, deprecatedLegacyContext?: any) => ReactElement<any, any> | null) | (new (props: any, deprecatedLegacyContext?: any) => Component<any, any, any>)'.
          Type 'new (props: any) => Component<any, any, any>' is not assignable to type 'new (props: any, deprecatedLegacyContext?: any) => Component<any, any, any>'.
            Construct signature return types 'Component<any, any, any>' and 'Component<any, any, any>' are incompatible.
              The types returned by 'render()' are incompatible between these types.
                Type 'React.ReactNode' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactNode'.
                  Type '{}' is not assignable to type 'ReactNode'.
                    Type '{}' is not assignable to type 'ReactPortal'.
  Overload 2 of 2, '(props: TransitionGroupProps<"div", any>, context: any): TransitionGroup', gave the following error.
    Types of property 'childFactory' are incompatible.
      Type '(child: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactElement<any, string | ((props: any, deprecatedLegacyContext?: any) => import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types...' is not assignable to type '(child: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactElement<any, string | ((props: any, deprecatedLegacyContext?: any) => import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types...'. Two different types with this name exist, but they are unrelated.

ERROR in [at-loader] ./src/components/Compositor.tsx:190:28 
    TS2304: Cannot find name 'Joyride'.

ERROR in [at-loader] ./src/components/CompositorContainer.tsx:53:3 
    TS2345: Argument of type 'typeof Compositor' is not assignable to parameter of type 'JSXElementConstructor<never>'.
  Type 'typeof Compositor' is not assignable to type 'new (props: never, deprecatedLegacyContext?: any) => Component<any, any, any>'.
    Construct signature return types 'Compositor' and 'Component<any, any, any>' are incompatible.
      The types of 'refs' are incompatible between these types.
        Type '{ [key: string]: React.ReactInstance; }' is not assignable to type '{ [key: string]: import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance; }'.
          Index signatures are incompatible.
            Type 'React.ReactInstance' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").ReactInstance'.
              Type 'Component<any, {}, any>' is not assignable to type 'ReactInstance'.
                Type 'React.Component<any, {}, any>' is not assignable to type 'import("/Users/todd/code/electrify/node_modules/@material-ui/core/node_modules/@types/react-transition-group/node_modules/@types/react/ts5.0/index").Component<any, {}, any>'.
toddmedema commented 3 months ago

Seems to be having some es6 issues, so thought maybe upgrading webpack would help... https://webpack.js.org/migrate/5

Unfortunately, looks like that requires first migrating from awesome-typescript-loader (deprecated) to ts-loader https://github.com/TypeStrong/ts-loader (use ts-loader 8.x if you need webpack 4 support)

Opened new issue for that: https://github.com/toddmedema/electrify/issues/74

Which then throws a ton of new errors, so we'll see if we can skip for now:

ERROR in ./src/components/base/Audio.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/Audio.tsx 3:20-44
 @ ./src/components/base/AudioContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastWeather.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastWeather.tsx 3:20-44
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastSupplyDemand.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastSupplyDemand.tsx 3:20-44
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastFuelPrices.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastFuelPrices.tsx 3:20-44
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/CustomGame.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/CustomGame.tsx 7:20-44
 @ ./src/components/views/CustomGameContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Facilities.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Facilities.tsx 8:20-44
 @ ./src/components/views/FacilitiesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/NewGameDetails.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/NewGameDetails.tsx 6:20-44
 @ ./src/components/views/NewGameDetailsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/NewGame.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/NewGame.tsx 7:20-44
 @ ./src/components/views/NewGameContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Forecasts.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Forecasts.tsx 5:20-44
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Finances.tsx
Module not found: Error: Can't resolve 'app/Constants' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Finances.tsx 7:20-44
 @ ./src/components/views/FinancesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/LoadingContainer.tsx
Module not found: Error: Can't resolve 'app/Globals' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/LoadingContainer.tsx 4:18-40
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/MainMenuContainer.tsx
Module not found: Error: Can't resolve 'app/Globals' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/MainMenuContainer.tsx 3:18-40
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/NewGameDetailsContainer.tsx
Module not found: Error: Can't resolve 'app/Globals' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/NewGameDetailsContainer.tsx 5:18-40
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/NewGameDetails.tsx
Module not found: Error: Can't resolve 'app/Globals' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/NewGameDetails.tsx 7:18-40
 @ ./src/components/views/NewGameDetailsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/MainMenu.tsx
Module not found: Error: Can't resolve 'app/LocalStorage' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/MainMenu.tsx 8:23-50
 @ ./src/components/views/MainMenuContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Tutorials.tsx
Module not found: Error: Can't resolve 'app/LocalStorage' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Tutorials.tsx 6:23-50
 @ ./src/components/views/TutorialsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/NewGame.tsx
Module not found: Error: Can't resolve 'app/Scenarios' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/NewGame.tsx 8:20-44
 @ ./src/components/views/NewGameContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Tutorials.tsx
Module not found: Error: Can't resolve 'app/Scenarios' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Tutorials.tsx 7:20-44
 @ ./src/components/views/TutorialsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/NewGameDetails.tsx
Module not found: Error: Can't resolve 'app/Scenarios' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/NewGameDetails.tsx 8:20-44
 @ ./src/components/views/NewGameDetailsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/BuildGeneratorsContainer.tsx
Module not found: Error: Can't resolve 'app/actions/Card' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/BuildGeneratorsContainer.tsx 3:15-42
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/FacilitiesContainer.tsx
Module not found: Error: Can't resolve 'app/actions/Card' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/FacilitiesContainer.tsx 3:15-42
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/NewGameContainer.tsx
Module not found: Error: Can't resolve 'app/actions/Card' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/NewGameContainer.tsx 5:15-42
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/NewGameDetailsContainer.tsx
Module not found: Error: Can't resolve 'app/actions/Card' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/NewGameDetailsContainer.tsx 3:15-42
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/BuildStorageContainer.tsx
Module not found: Error: Can't resolve 'app/actions/Card' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/BuildStorageContainer.tsx 3:15-42
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/NewGameContainer.tsx
Module not found: Error: Can't resolve 'app/reducers/GameState' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/NewGameContainer.tsx 3:20-53
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/TutorialsContainer.tsx
Module not found: Error: Can't resolve 'app/reducers/GameState' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/TutorialsContainer.tsx 3:20-53
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/Theme.tsx
Module not found: Error: Can't resolve 'shared/Theme' in '/Users/todd/code/electrify/services/app/src'
 @ ./src/Theme.tsx 5:16-39
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastWeather.tsx
Module not found: Error: Can't resolve 'shared/Theme' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastWeather.tsx 6:16-39
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartSupplyDemand.tsx
Module not found: Error: Can't resolve 'shared/Theme' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartSupplyDemand.tsx 7:16-39
 @ ./src/components/views/Facilities.tsx
 @ ./src/components/views/FacilitiesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastSupplyDemand.tsx
Module not found: Error: Can't resolve 'shared/Theme' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastSupplyDemand.tsx 7:16-39
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastFuelPrices.tsx
Module not found: Error: Can't resolve 'shared/Theme' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastFuelPrices.tsx 7:16-39
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartFinances.tsx
Module not found: Error: Can't resolve 'shared/Theme' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartFinances.tsx 5:16-39
 @ ./src/components/views/Finances.tsx
 @ ./src/components/views/FinancesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/MainMenu.tsx
Module not found: Error: Can't resolve 'shared/Theme' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/MainMenu.tsx 9:16-39
 @ ./src/components/views/MainMenuContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastWeather.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastWeather.tsx 5:19-53
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/GameCard.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/GameCard.tsx 11:19-53
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartSupplyDemand.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartSupplyDemand.tsx 4:19-53
 @ ./src/components/views/Facilities.tsx
 @ ./src/components/views/FacilitiesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastSupplyDemand.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastSupplyDemand.tsx 5:19-53
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastFuelPrices.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastFuelPrices.tsx 5:19-53
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartFinances.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartFinances.tsx 4:19-53
 @ ./src/components/views/Finances.tsx
 @ ./src/components/views/FinancesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/BuildStorage.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/BuildStorage.tsx 10:19-53
 @ ./src/components/views/BuildStorageContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/BuildGenerators.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/BuildGenerators.tsx 10:19-53
 @ ./src/components/views/BuildGeneratorsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Forecasts.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Forecasts.tsx 6:19-53
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Finances.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Finances.tsx 8:19-53
 @ ./src/components/views/FinancesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/reducers/GameState.tsx
Module not found: Error: Can't resolve 'shared/helpers/DateTime' in '/Users/todd/code/electrify/services/app/src/reducers'
 @ ./src/reducers/GameState.tsx 7:19-53
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/Facilities.tsx
Module not found: Error: Can't resolve 'shared/helpers/Financials' in '/Users/todd/code/electrify/services/app/src'
 @ ./src/Facilities.tsx 3:21-57
 @ ./src/reducers/GameState.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/BuildStorage.tsx
Module not found: Error: Can't resolve 'shared/helpers/Financials' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/BuildStorage.tsx 11:21-57
 @ ./src/components/views/BuildStorageContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Facilities.tsx
Module not found: Error: Can't resolve 'shared/helpers/Financials' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Facilities.tsx 10:21-57
 @ ./src/components/views/FacilitiesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/BuildGenerators.tsx
Module not found: Error: Can't resolve 'shared/helpers/Financials' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/BuildGenerators.tsx 11:21-57
 @ ./src/components/views/BuildGeneratorsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Finances.tsx
Module not found: Error: Can't resolve 'shared/helpers/Financials' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Finances.tsx 9:21-57
 @ ./src/components/views/FinancesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/reducers/GameState.tsx
Module not found: Error: Can't resolve 'shared/helpers/Financials' in '/Users/todd/code/electrify/services/app/src/reducers'
 @ ./src/reducers/GameState.tsx 8:21-57
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/GameCard.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/GameCard.tsx 12:17-49
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartSupplyDemand.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartSupplyDemand.tsx 5:17-49
 @ ./src/components/views/Facilities.tsx
 @ ./src/components/views/FacilitiesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastSupplyDemand.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastSupplyDemand.tsx 6:17-49
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartForecastFuelPrices.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartForecastFuelPrices.tsx 6:17-49
 @ ./src/components/views/Forecasts.tsx
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/BuildGenerators.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/BuildGenerators.tsx 12:17-49
 @ ./src/components/views/BuildGeneratorsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/BuildStorage.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/BuildStorage.tsx 12:17-49
 @ ./src/components/views/BuildStorageContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Facilities.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Facilities.tsx 11:17-49
 @ ./src/components/views/FacilitiesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Forecasts.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Forecasts.tsx 7:17-49
 @ ./src/components/views/ForecastsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Finances.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Finances.tsx 10:17-49
 @ ./src/components/views/FinancesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/reducers/GameState.tsx
Module not found: Error: Can't resolve 'shared/helpers/Format' in '/Users/todd/code/electrify/services/app/src/reducers'
 @ ./src/reducers/GameState.tsx 9:17-49
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/base/ChartSupplyDemand.tsx
Module not found: Error: Can't resolve 'shared/helpers/Math' in '/Users/todd/code/electrify/services/app/src/components/base'
 @ ./src/components/base/ChartSupplyDemand.tsx 6:15-45
 @ ./src/components/views/Facilities.tsx
 @ ./src/components/views/FacilitiesContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/Init.tsx
Module not found: Error: Can't resolve 'shared/schema/Constants' in '/Users/todd/code/electrify/services/app/src'
 @ ./src/Init.tsx 8:20-54
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/Settings.tsx
Module not found: Error: Can't resolve 'shared/schema/Constants' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/Settings.tsx 6:20-54
 @ ./src/components/views/SettingsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/reducers/Settings.tsx
Module not found: Error: Can't resolve 'shared/schema/Constants' in '/Users/todd/code/electrify/services/app/src/reducers'
 @ ./src/reducers/Settings.tsx 3:20-54
 @ ./src/reducers/CombinedReducers.tsx
 @ ./src/Store.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/LoadingContainer.tsx
Module not found: Error: Can't resolve 'shared/schema/FuelPrices' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/LoadingContainer.tsx 5:21-56
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/BuildGenerators.tsx
Module not found: Error: Can't resolve 'shared/schema/FuelPrices' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/BuildGenerators.tsx 13:21-56
 @ ./src/components/views/BuildGeneratorsContainer.tsx
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/reducers/GameState.tsx
Module not found: Error: Can't resolve 'shared/schema/FuelPrices' in '/Users/todd/code/electrify/services/app/src/reducers'
 @ ./src/reducers/GameState.tsx 10:21-56
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/components/views/LoadingContainer.tsx
Module not found: Error: Can't resolve 'shared/schema/Weather' in '/Users/todd/code/electrify/services/app/src/components/views'
 @ ./src/components/views/LoadingContainer.tsx 6:18-50
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in ./src/reducers/GameState.tsx
Module not found: Error: Can't resolve 'shared/schema/Weather' in '/Users/todd/code/electrify/services/app/src/reducers'
 @ ./src/reducers/GameState.tsx 11:18-50
 @ ./src/components/Compositor.tsx
 @ ./src/Init.tsx
 @ multi ./src/Init.tsx ./src/Style.scss

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/index.d.ts(16,1)
      TS1128: Declaration or statement expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/index.d.ts(16,13)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/index.d.ts(16,46)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(2,10)
      TS1005: 'from' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(2,13)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(2,18)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(2,23)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(3,10)
      TS1005: 'from' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(3,13)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(3,24)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(3,29)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(5,10)
      TS1005: 'from' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(5,13)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(5,18)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(5,23)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(6,10)
      TS1005: 'from' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(6,13)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(6,32)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(6,37)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(7,10)
      TS1005: 'from' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(7,13)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(7,20)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(7,25)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(8,10)
      TS1005: 'from' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(8,13)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(8,20)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(8,25)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(9,10)
      TS1005: 'from' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(9,13)
      TS1005: ';' expected.

ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts
[tsl] ERROR in /Users/todd/code/electrify/node_modules/victory-core/lib/victory-util/index.d.ts(9,21)
      TS1005: ';' expected.
toddmedema commented 3 months ago

Closing in favor of https://github.com/toddmedema/electrify/pull/77