react-native-ip-sec-vpn icon indicating copy to clipboard operation
react-native-ip-sec-vpn copied to clipboard

Cannot read property 'prepare' of null and cannot read property 'VpnState' of undefined

Open fajrur opened this issue 2 years ago • 6 comments

I'm getting error when run this project in emulator. This is my screenshot from my emulator:

Screen Shot 2022-12-22 at 5 9 2 PM Screen Shot 2022-12-22 at 5 9 15 PM Screen Shot 2022-12-22 at 5 9 34 PM Screen Shot 2022-12-22 at 5 9 50 PM

I've already imported the prepare and VpnState from react-native-ip-sec-vpn package. Thanks in advance for any help.

fajrur avatar Dec 22 '22 10:12 fajrur

For example, if you are getting the "cannot read property 'prepare' of null" error, it means that you are trying to access the 'prepare' property of an object that is null. This could be because the object was not initialized or because it was set to null at some point in your code.

Similarly, if you are getting the "cannot read property 'VpnState' of undefined" error, it means that you are trying to access the 'VpnState' property of an object that is undefined. This could be because the object was not defined, or because it was defined but not initialized with a value.

Mitesh2020 avatar Dec 24 '22 03:12 Mitesh2020

FYI, the comment from @Mitesh2020 above was generated by ChatGPT. He also posted several ChatGPT-generated comments today in the https://github.com/whatwg/html issue tracker. I’ve reported them to GitHub for abuse.

sideshowbarker avatar Dec 24 '22 11:12 sideshowbarker

FYI, the comment from @Mitesh2020 above was generated by ChatGPT. He also posted several ChatGPT-generated comments today in the https://github.com/whatwg/html issue tracker. I’ve reported them to GitHub for abuse.

it has come to the point where people use chatgpt to imitate knowledge on the subject

how far will it continue

0x3C50 avatar Dec 24 '22 16:12 0x3C50

is this dependency still supported?

Bimbimz avatar Dec 24 '22 20:12 Bimbimz

It seems the JS code had problem to call the native code, the native code installation may have issue. You should try to reinstall and re-run the project.

jackywxd avatar Dec 28 '22 17:12 jackywxd

It seems the JS code had problem to call the native code, the native code installation may have issue. You should try to reinstall and re-run the project.

I have reinstalland re-run the project with disabled a few lines of code. When in emulator, the application immediately force close after I click connect button. But in real device, it's getting force close when I open the application.

I've got this warning message in my terminal when I run yarn android Screen Shot 2022-12-29 at 9 59 14 AM

fajrur avatar Dec 29 '22 03:12 fajrur