Closed
Description
Hey @EddyVerbruggen,
Went to add this plugin to a new app today and noticed that it causes the app to crash at runtime with a somewhat cryptic error.
JavaScript error:
file:///node_modules/properties/lib/stringify.js:9:17: JS ERROR TypeError: undefined is not an object (evaluating 'global.process.platform')
(CoreFoundation) *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: TypeError: undefined is not an object (evaluating 'global.process.platform')
at
../node_modules/properties/lib/stringify.js(file:///node_modules/properties/lib/stringify.js:9:17)
at __webpack_require__(file:///src/webpack/bootstrap:750:0)
You can recreate the problem pretty simply.
- Start a new app. (I used the default Angular drawer template.)
tns plugin add nativescript-app-sync
tns run ios --emulator
I’ll try to debug a bit and see if this is related to the new version, or maybe the type of app.