reflow-project / weloop

WeLoop is a React/TypeScript client for ZenPub and a key component of ReflowOS
https://weloop.reflowproject.eu
GNU Affero General Public License v3.0
5 stars 5 forks source link

Build pipeline fails #154

Closed pral2a closed 2 years ago

pral2a commented 2 years ago

Github Actions deployment script fails at:

/home/runner/work/weloop/weloop/src/HOC/modules/CreateResourcePanel/CreateResourcePanelHOC.tsx
TypeScript error in /home/runner/work/weloop/weloop/src/HOC/modules/CreateResourcePanel/CreateResourcePanelHOC.tsx(113,9):
Type 'Maybe<string>' is not assignable to type 'string | undefined'.
  Type 'null' is not assignable to type 'string | undefined'.  TS2322

    111 |         note: values.note,
    112 |         eventNote: values.eventNote,
  > 113 |         hasPointInTime: values.hasPointInTime,
        |         ^
    114 |         atLocation: values.atLocation?.id || '',
    115 |         provider: values.provider.id,
    116 |         receiver: values.receiver.id,

See full report:

https://github.com/reflow-project/weloop/runs/4081830515?check_suite_focus=true#step:5:63

pral2a commented 2 years ago

Keeps failing, now:

/home/runner/work/weloop/weloop/src/ui/modules/CreateEventOnResourcePanel/index.tsx
TypeScript error in /home/runner/work/weloop/weloop/src/ui/modules/CreateEventOnResourcePanel/index.tsx(16,24):
Could not find a declaration file for module 'react-datepicker'. '/home/runner/work/weloop/weloop/node_modules/react-datepicker/dist/index.js' implicitly has an 'any' type.
  Try `npm install @types/react-datepicker` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-datepicker';`  TS7016

    14 | import { Actions, Container, CounterChars, Header } from 'ui/modules/Modal';
    15 | import { Hero, CollectionContainerForm, HeroInfo } from '../CreateCollectionPanel/style';
  > 16 | import DatePicker from 'react-datepicker';
       |                        ^
    17 | import 'react-datepicker/dist/react-datepicker.css';
    18 | 
    19 | export type CreateEventOnResourceFormValues = {