NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
101 stars 50 forks source link

[ReferenceError: net is not defined] #156

Closed gotroch closed 6 years ago

gotroch commented 6 years ago

session.uploadFile gives me [ReferenceError: net is not defined]. I found the same error with older versions but no fix that would help me.

nativescript-background-http@3.2.7

lini commented 6 years ago

The error means that for some reason a library dependence was not installed and the project was not built correctly. To fix this, you can try removing the project's platform directory and rebuilding the app. This is the same as doing:

tns platform remove android
tns build android

If you still see the error after building the app again, check the build log and see if there are any errors related to net.gotev:uploadservice.