LinkContainer doesn't work

The frontend just disappear when I wrapped things up using LinkContainer and using inspect I get the error below.
Uncaught TypeError: (0 , _reactRouterDom.useNavigate) is not a function
at LinkContainer (bundle.js:184845)
at renderWithHooks (bundle.js:156591)
at mountIndeterminateComponent (bundle.js:159353)
at beginWork (bundle.js:160552)
at HTMLUnknownElement.callCallback (bundle.js:145541)
at Object.invokeGuardedCallbackDev (bundle.js:145590)
at invokeGuardedCallback (bundle.js:145650)
at beginWork$1 (bundle.js:165392)
at performUnitOfWork (bundle.js:164228)
at workLoopSync (bundle.js:164165)

Anyone experiencing the same issue?