Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"react-icons": "^4.6.0",
"react-monaco-editor": "^0.50.1",
"react-moveable": "^0.40.0",
"react-resizable": "^3.0.4",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need this:

yarn add -D @types/react-resizable

Otherwise the compiler complains:

ERROR in src/components/Canvas.tsx:37:30
TS2307: Cannot find module 'react-resizable' or its corresponding type declarations.
    35 |
    36 | import Moveable from "react-moveable";
  > 37 | import { ResizableBox } from "react-resizable";
       |                              ^^^^^^^^^^^^^^^^^
    38 | import Ansi from "ansi-to-react";
    39 |
    40 | import { customAlphabet } from "nanoid";

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering why...I shelled into the UI instance to manually install react-resizable to fix.

"react-router-dom": "^6.4.2",
"react-scripts": "5.0.1",
"slate": "^0.82.1",
Expand Down Expand Up @@ -95,6 +96,7 @@
"@storybook/preset-create-react-app": "^4.1.2",
"@storybook/react": "^6.5.12",
"@storybook/testing-library": "^0.0.13",
"@types/react-resizable": "^3.0.3",
"babel-plugin-named-exports-order": "^0.0.2",
"prop-types": "^15.8.1",
"react-app-rewired": "^2.2.1",
Expand Down
Loading