Closed whitphx closed 1 year ago
When I ran npm start or npm run build, the following error occurred:
npm start
npm run build
> drawable_canvas@0.10.0 build > react-scripts build Creating an optimized production build... Failed to compile. /path/to/streamlit-drawable-canvas/streamlit_drawable_canvas/frontend/node_modules/@types/babel__traverse/index.d.ts TypeScript error in /path/to/streamlit-drawable-canvas/streamlit_drawable_canvas/frontend/node_modules/@types/babel__traverse/index.d.ts(68,50): ']' expected. TS1005 66 | } 67 | > 68 | export type ArrayKeys<T> = keyof { [P in keyof T as T[P] extends any[] ? P : never]: P }; | ^ 69 | 70 | export class Scope { 71 | constructor(path: NodePath, parentScope?: Scope);
Then I updated the TypeScript version following https://stackoverflow.com/a/69746937/13103190
When I ran
npm start
ornpm run build
, the following error occurred:Then I updated the TypeScript version following https://stackoverflow.com/a/69746937/13103190