I guess “create-react-app@4” was using webpack 4.x and now it is highly possibly you have “create-react-app@5” with webpack 5.x. The error you get complaints about “fs” and “path” modules of nodejs and the part I quoted tells they are not included by default in the app’s packaging.
The error message also suggests you a solution in later lines, with path-browserify
. please first try that and see if the error goes away.