Eik-Lab/QueenBee

Issue with building project

Opened this issue · 2 comments

When building the project, the following type error comes:

> Queen_Bee@1.0.0 build /Users/uzaaft/Work/eik/QueenBee
> next build

info  - Loaded env from /Users/uzaaft/Work/eik/QueenBee/.env.local
Failed to compile.

./pages/index.tsx:278:11
Type error: Type '{ labels: string[]; datasets: { label: string; data: number[]; borderColor: string; backgroundColor: string; }[]; } | { data: { datasets: { label: string; data: any; parsing: { yAxisKey: string; }; }[]; }; }' is not assignable to type 'ChartData<"line", number[], string>'.
  Property 'datasets' is missing in type '{ data: { datasets: { label: string; data: any; parsing: { yAxisKey: string; }; }[]; }; }' but required in type 'ChartData<"line", number[], string>'.

  276 |         <Line
  277 |           options={options}
> 278 |           data={data.length ? aggregateDataForPlot(data) : testdata}
      |           ^
  279 |           redraw={true}
  280 |         />
  281 |       </div>
info  - Checking validity of types .ELIFECYCLE Command failed with exit code 1.

@jakeriksen Any idea what's happening here?

@jakeriksen Did you fix this?