The issue seems to be with the Vite server configuration. The host in the Vite configuration file is set to 'blog.test', but it is not accessible from the browser. To fix this, the host should be set to the IP address of the Homestead machine.
To get the IP address of the Homestead machine, run the following command in the terminal:
homestead ssh -c "hostname -I | cut -d' ' -f2"
This will output the IP address of the Homestead machine.
Update the Vite configuration file with the IP address:
server: {
host: '192.168.10.10', // replace with the IP address of the Homestead machine
https: false,
cors: false,
hmr: {
host: '192.168.10.10', // replace with the IP address of the Homestead machine
}
},
Save the file and restart the Vite server by running npm run dev again. The Vue component should now be accessible in the browser without any errors.