MVC project

Hello there, folks.

I cannot start MVC project. Backend starting ok, but whenever I try to start the front end I got the following error message:

Must use import to load ES Module: /home/user/Desktop/misc/code-cademy/projects/mvc/view/src/setupProxy.js
require() of ES modules is not supported.
require() of /home/user/Desktop/misc/code-cademy/projects/mvc/view/src/setupProxy.js from /home/user/Desktop/misc/code-cademy/projects/mvc/view/node_modules/react-scripts/config/webpackDevServer.config.js is an ES module file as it is a .js file whose nearest parent package.json contains “type”: “module” which defines all .js files in that package scope as ES modules.
Instead rename setupProxy.js to end in .cjs, change the requiring code to use import(), or remove “type”: “module” from /home/user/Desktop/misc/code-cademy/projects/mvc/view/package.json.

npm ERR! code 1
npm ERR! path /home/user/Desktop/misc/code-cademy/projects/mvc/view
npm ERR! command failed
npm ERR! command sh -c react-scripts start