Missing library build files in react web app release

Hi everyone.

I’m using invoiceninja v5.8.57 and i see that it uses version 14.04.2024.1 of the react web app. I want to use the latest version of the react web app so i download invoiceninja-react.zip version 21.05.2024.1 (currently the latest version) and replace the dist/react folder for the public/react folder in Invoiceninja. But when i updated the index.blade.php file, i discovered that there were 3 files listed in the index.blade.php file that did not appear in the dist/react folder. These files are:

  • hex-color-regex-ef0a4159.js
  • monaco-editor-2fc5bf8a.js
  • monaco-editor-6dc88aee.css

I downloaded the source code of the react web app and ran npm run build command, but after the build process is completed, the three files above are still not created in the dist/react directory.

Why is there a difference between the released version of the react web application and the version used in invoiceninja? Do I have to have the above 3 files in the dist/react folder to update the react web app version for the system?

Thanks.

Hi,

@david can you please advise?

I checked recent releases and found a version history that added the above 3 files to invoiceninja

  • v5.8.52: hex-color-regex-ef0a4159.js
  • v5.8.50: monaco-editor-2fc5bf8a.js / monaco-editor-6dc88aee.css

Both of the above releases use react web app version 14.04.2024.1. It seems that during the process of building the realease version for invoiceninja, there were edits in react web app but these edits were not added to the official releases of react web app.

I am assuming you are referencing the react-invoiceninja.tar release file?

I see all the resources and references fine.

That’s right, in invoiceninja’s release everything is fine. However, when I downloaded the release version of react web app, the above files did not exist in the dist/react folder. I downloaded the source code release of react web app and rebuilt the project, but I still don’t see the above 3 files appear in the dist/react folder.
This is react web app version 21.05.2024.1

If you pull from invoiceninja/ui you would also need to run

npm i
npm run build

Yes i ran those commands. However, i still cannot find the above 3 files after the dist/react folder was created.