I'm working on an application integrated with Laravel 10 and React JS and I'm using Vite. I changed the port in package.json in the scripts part as follows ("dev": "vite --port=3000"), but the server does not open in this port, it opens in the default port they gave me (http:// /localhost:5173) and everything I created doesn't appear. Don't know what the problem is?
I reinstalled Node_modules but I still have the same problem
In your
package.jsonscripts, change yourdevcommand from"dev": "vite"to"dev": "vite --port 3000".After you run the
devcommand, you need to go tohttp://localhost/nothttp://localhost:3000.