I am building an Electron app and the build process is successful: https://flathub.org/builds/#/builders/32/builds/34661
To generate the “generated-sources.json” I use the flatpak-node-generator.py script (https://github.com/flatpak/flatpak-builder-tools/tree/master/node) like this “flatpak-node-generator.py npm --xdg-layout package-lock.json”
After installing the test build and running it, the app crashes and throws this error:
So for whatever reason at least the inext18 package is not being downloaded or placed into the right place even though it is stated in the generated-sources.json file.
I don’t think the cause is the app itself. I can easily “npm start” the app locally without any errors and the Snapcraft build runs perfectly well. It only crashes after the Flatpak building process.
Does anybody has a little bit of experience with Electron apps and Flatpak and can help me figuring out why this happens?