Relative Content

Tag Archive for javascriptreactjsviterollup

Could not load /__w/repo-name/repo-name/src/__vite-browser-external

I’m in the process of migrating our legacy frontend app from Create React App (CRA) to Vite. The transition has had its challenges, but I’m nearly done. Everything is up and running locally, and I’m able to build the app successfully on my machine. However, I’m encountering an issue when deploying the app through my GitHub Actions workflow. Specifically, I’m receiving the following error during the deployment job:

Manipulate import urls after build in ViteJS

I have a react application configured with ViteJs (vite and @vitejs/plugin-react).
I Managed to change base path and it works correctly (I see <script src="/panel/client/assets/index-BHlWjozO.js"></script> inside index.html after build)