Error in reloading page in React app with catalyst serve

Error in reloading page in React app with catalyst serve

Good day everyone, I am using catalyst with react on my recent project, but I run some routing errors in my react app if I use the catalyst serve command, the situation is that - after I reload my browser an error will occur, it will run normally at first but if I transition to another page in the app and use the reload page an error will pop up saying "Invalid_Url_Pattern", by the way in my package,json inside the client folder I set the homepage to "/app" which is the default url, but if I transition to another page with a url of "app/NextPage" for example and reload it the error will pop up. How can I solve this problem?

Note: npm run start command in react doesn't have this error

      Catalyst Community