App crashed while running with webpack

nativescriptcore

#1

Hi there, I am developing mobile app by using nativescript with angular. It is ok when I was not using webpack. Now I am using webpack in my app, sometime my app has been crashed and it gave me the following error. It doesn’t happen every time. If you have experience in this case, please share me how you solved this.
tns version => 4.1.2
“nativescript-dev-webpack”: “^0.14.1”
“tns-ios”: {
“version”: “4.1.1”
},
“tns-android”: {
“version”: “4.1.3”
}

Thanks & Best Regards,
Zaw Zaw Naing


#2

I must agree that there are certain issues with web pack when compared with debug builds as the code is being compressed. But the issue may be something specific to your code, so without a repo where we can reproduce the issue, it’s difficult to track.

From error log, it looks like you are ready to access an undefined object.


#3

Hi Manojkumar,

Thanks for your reply, I gonna check the codes in my project thoroughly.

Anyway, if you have some experiences with something like this issue, please share me.

Thanks & Best Regards,

Zaw Zaw Naing