found a quick fix for this. instead of using
To Setup npm install -g serve
To run the Build npm run build
Make sure the name of the folder is Build and not something else like dist serve -s build
you can use sudo npm run dev locally or on your server to get around this issue.
@jalmartinez im having the same issue. were you able to resolve this?