No index.html found in the project web dir (.output/public)

There is an error I get every time I try to build using App Flow, however, the error doesn’t occur on my local machine or when I use vercel. The error states that the index.html file is missing from the .output/public directory, nevertheless, the file exists in the directory upon commit. The error is as follows: “No index.html found in the project web dir (.output/public)”. Any help would be greatly appreciated.

Hi people,

Could I get any help with this. As earlier indicated, this builds well on my local server (Ubuntu - Nodejs: v18) and vercel; but not on App flow. Any help would be greatly appreciated.

I have the same issue. When I run the following commands locally everything works fine, but when I try to build the app in AppFlow it says “No index.html found in the project web dir (.output/public)”. Any idea?

npx run generate (generates the .output/public folder with a index.html file)
npx cap sync (syncs the generated folder to the specific platforms)
npx run ios (runs the generated app on an emulator without problems)