Problem with React UI

Hello guys

I migrated to V5 today. I installed it and do updates through installatron. I use version 5.4.11 of Invoice Ninja.

Now, I pushed the button to see the React UI and now my invoiceninja doesn’t seem to be working.

When I look in the dev tools, I get 404, the main problem is that it is trying to load the files (js, …) from the wrong URL location, it is just using my main ULR and not the URL where my invoiceninja is installed.

As example.
GET https://sojaway.com/react/unist-util-generated.22d80e74.js net::ERR_ABORTED 404
index.php:11

And it should be
https://sojaway.com/mybill/

THank you for this wonderfull product

Kind regards
Jarn

Hi,

Are you using 5.4.11 or 5.5.11? If 5.4.x I suggest upgrading.

You can run this SQL query to switch back to the Flutter app:

UPDATE accounts SET set_react_as_default_ap = 0;

1 Like

Hi Hillel

Its 5.4.11, but Installatron manages my updates. So I’ll need to wait untill they make the update possible.

I’ll try the SQL query as what you wrote up there. I’ll let you know if its working.

Thanks for the help.

Hi Hillel

This seemed to fix the problem.

Thanks for the quick support!

Thanks, @hillel, it worked for me, for those using shared hosting. go to the PHPMyAdmin app database (XXXXXX_ninjXXX) under “set_react_as_default_ap” and change the value to 0.

I have the same issue on v 5.8.31
and this is in .env

APP_URL="https://correct URL"
REACT_URL=http://localhost:3001

Yes, UPDATE accounts SET set_react_as_default_ap = 0; fixed the issue by taking it back to flutter version but please how to have react version working.

Thank you.

Sorry forgot to show the laravel.log

#52 /home/hidden-domain/billing.hidden-domain.com/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Tracing/Middleware.php(87): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#53 /home/hidden-domain/billing.hidden-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Sentry\\Laravel\\Tracing\\Middleware->handle()
#54 /home/hidden-domain/billing.hidden-domain.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#55 /home/hidden-domain/billing.hidden-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#56 /home/hidden-domain/billing.hidden-domain.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#57 /home/hidden-domain/billing.hidden-domain.com/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle()
#58 {main}
"}