Capacitor: Unable to open asset URL:

Hello everyone

I have a react app which works fine in the browser with npm start

Then i wanted to use Capacitor to make it mobile app, but when i run the app i get this error in android studio and the app just a blank white.

The error is Capacitor unable to open the assets which is inside android folder i checked there the files where there but i do not know why i get this error

E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/2.f28318ed.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/main.4bde37fe.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/2.f28318ed.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/main.4bde37fe.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/css/main.16285d4f.chunk.css
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/2.f28318ed.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/main.4bde37fe.chunk.js
    Unable to open asset URL: http://localhost/arbook/static/css/main.16285d4f.chunk.css
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/css/main.16285d4f.chunk.css
D/Capacitor: Handling local request: http://localhost/arbook/static/js/2.f28318ed.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/2.f28318ed.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/2.f28318ed.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/2.f28318ed.chunk.js
D/Capacitor: Handling local request: http://localhost/arbook/static/js/main.4bde37fe.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/main.4bde37fe.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/main.4bde37fe.chunk.js
E/Capacitor: Unable to open asset URL: http://localhost/arbook/static/js/main.4bde37fe.chunk.js
D/Capacitor: Handling local request: http://localhost/arbook/favicon.ico
E/Capacitor: Unable to open asset URL: http://localhost/arbook/favicon.ico
I/chatty: uid=10321(com.example.app) ThreadPoolForeg identical 1 line
E/Capacitor: Unable to open asset URL: http://localhost/arbook/favicon.ico

Hi, @armanfantasy

Did you solve the problem?

Best regards
Humberto

Capacitor doesn’t support placing files in an intermediate folder, looks like your index.html is inside an arbook folder, but should be on the root of reacts build folder.