Browse Source

Update README.md

czhen 3 years ago
parent
commit
e6c7f91689
1 changed files with 7 additions and 0 deletions
  1. 7 0
      client/README.md

+ 7 - 0
client/README.md

@@ -25,12 +25,19 @@
 ### Fixed pacakge version
 
 Temporarily we specify 3 packages' version for ts build.
+
 ```
 "@material-ui/core": "4.11.4",
 "@material-ui/lab": "4.0.0-alpha.58",
 "react-i18next": "11.10.0",
 ```
 
+`react-i18next`'s `useTranslation(<name>)` will return a `t` function, which used to return `string` and `string{}` type. But in latest version it only return `string` and cause typecheck error.
+
+`@material-ui/core` change `TablePagination`(from '@material-ui/core/TablePagination') type in latest version. We specified a former version to prevent error here.
+
+In future we will fix all type issues and remove specified package version usage.
+
 ### How to name the file
 
 We use Camel-Case to name the file.