Sometimes it may happen because of some bundler settings which don’t suit your server settings, often it is related to relative URLs.
So check if the JSON file is there, and if it is there why it’s URL is wrong.
See this thread, for example - removing extra slash in config solved the build problem: Project setup using Vite with CI/CD on GitHub Actions - #7 by labris
1 Like