Open FJALCode opened 4 years ago
@FJALCode the snapshot flag will be respected only in a release which explains why you are successfully doing a debug build (where the snapshot flag is simply ignored).
The likely reason for your issue is a mismatch of versions. I've noticed you are using CLI version 5.4.0 while using one of the latest versions of nativescript-dev-webpack. My suggestion is to migrate to the latest versions of all NativeScript related packages (CLI, modules. webpack)
@NickIliev I couldn't migrate the Nativescript version because I need the Mapbox Plugin, and that plugin for now, only works with Nativescript <5.4. I was following this tutorial for create the build version, and this tutorial for debug version.
I don't know why It didn't work from my PC, but it worked from another PC with same linux, Node and Nativescript version. I have formatted my pc, but it still fails, you may know the reason ¿?¿?
This one here is related to: https://github.com/NativeScript/nativescript-cli/issues/5298
As far as i see it now its your build env.
Youre missing stuff on your os, you can use my docker container: https://hub.docker.com/r/scratchy/nativescript-cli in this i fixed this issue by adding "libx32gcc-8-dev" and "xxd"
The likely reason for your issue is a mismatch of versions. I've noticed you are using CLI version 5.4.0 while using one of the latest versions of nativescript-dev-webpack. My suggestion is to migrate to the latest versions of all NativeScript related packages (CLI, modules. webpack)
This is just not correct, just letting someone random upgrade stuff is not a good solution and brings far more issues with it. In general the build should work for every version, and they should be reproducable (https://en.wikipedia.org/wiki/Reproducible_builds) at any time (even if i trigger a build for an old version years ago it should work, because the build environment should be clean and frozen).
Also hes just missing dependencies (the one i posted above), it has nothing today with his versions (or at least it should otherwise this complete build setup is not correct). Especially as far as i see it atm the build process is somehow running parts in an docker environment (which is a good first step for reproducable builds..)
Environment
Describe the bug I tried to build the APK with
It didn't work from my PC, but it worked from another PC with linux, node V-10.16 and npm V-6.9.0. I tried to recompile, clean the platform, update and downgrade the node version, etc, etc, but it didn't work either. I'm able to run and build the APP with
tns run/build android --bundle --env.uglify --env.aot --env.snapshot
but I couldn't build with the keystore.Error
Package.json
webpack.config.js