-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ESlint problems / typescript for cvat-core #5027
Conversation
/check |
❌ Some checks failed |
/check |
❌ Some checks failed |
/check |
1 similar comment
/check |
✔️ All checks completed successfully |
cvat-ui/package.json
Outdated
"cvat-canvas": "file:../cvat-canvas", | ||
"cvat-canvas3d": "file:../cvat-canvas3d", | ||
"cvat-core": "file:../cvat-core", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not add these dependencies here. It leads to bugs with yarn
They were deleted before to avoid it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hot reload does not work when change these packages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the pr - tried to use yarn's link
instead of file
. Hot reload woks fine for me with that change. Could you try it?
// | ||
// SPDX-License-Identifier: MIT | ||
import 'redux-thunk/extend-redux'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recently I've been having such type error in cvat-ui:
Argument of type 'ThunkAction<{}, AnyAction>' is not assignable to parameter of type 'AnyAction'.ts(2345)
on each call to dispatch
. This import solved the error.
/check |
✔️ All checks completed successfully |
Motivation and context
How has this been tested?
Checklist
develop
branchcvat-core, cvat-data and cvat-ui)
License
Feel free to contact the maintainers if that's a concern.