plotly/react-pivottable

Typescript error in plotly.js/index.d.ts during npm run build

Ekotenggara opened this issue · 1 comments

I am trying to use react-PivotTable in my existing react project which is written in typescript.
I copy paste all the .jsx into the new folder and called it as a component from my existing component. eg: <App ... />

I have a problem during 'npm run build' in node_modules/@types/plotly.js/index.d.ts(1348,36):
',' expected. TS1005

1346 |         start: number;
1347 |         type: 'levels' | 'constraint';

1348 | value: number | [lowerBound: number, upperBound: number];
| ^
1349 | }>;
1350 | autocontour: boolean;
1351 | ncontours: number;

Has anybody had this issue before?

Thank you.

Updating the typescript version to 4.1.2 fixed it for me :)