fix: type error in _app
reason is that some dependency used the latest version of @types/react, which is 18 something.
but we still use react 17 in the project. I now force the version of @types/react to be 17.
we could also update to react 18 to get rid of this problem