Open jpmartinsson opened 3 years ago
I can also add that the Device actually connects to the phone before the crash (Seen when looking at Bluetooth Connections on the phone)
I have now updated my project to NS7 and Angular 10. I was hoping this could miraculously solve the issue, but unfortunately the error message remains exactly the same:
"dependencies": {
"@angular/animations": "10.1.0",
"@angular/common": "10.1.0",
"@angular/compiler": "10.1.0",
"@angular/core": "10.1.0",
"@angular/forms": "10.1.0",
"@angular/platform-browser": "10.1.0",
"@angular/platform-browser-dynamic": "10.1.0",
"@angular/router": "10.1.0",
"@dsvishchov/nativescript-ngx-shadow": "^7.0.3",
"@nativescript-community/ble": "^3.0.16",
"@nativescript/angular": "10.1.2",
"@nativescript/core": "7.3.0",
"@nativescript/datetimepicker": "~2.0.0",
"@nativescript/theme": "~2.2.1",
"@nativescript/webpack": "3.0.0",
"@proplugins/nativescript-localstorage": "^2.3.1",
"nativescript-directions": "^1.3.1",
"nativescript-geolocation": "^5.1.0",
"nativescript-permissions": "^1.3.9",
"nativescript-ui-gauge": "~7.0.2",
"reflect-metadata": "~0.1.12",
"rxjs": "^6.4.0",
"rxjs-compat": "^6.0.0-rc.0",
"tslib": "^1.11.2",
"zone.js": "~0.10.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "0.1000.8",
"@angular/cli": "^10.0.0",
"@angular/compiler-cli": "10.1.0",
"@angular/language-service": "^8.2.6",
"@nativescript/schematics": "~0.7.0",
"@nativescript/tslint-rules": "~0.0.2",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^10.17.21",
"codelyzer": "^5.2.2",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.3.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^6.0.0",
"style-loader": "^1.2.1",
"tns-android": "6.5.3",
"tns-ios": "6.5.4",
"ts-node": "~4.1.0",
"tslint": "^5.16.0",
"typescript": "3.9.7",
"@nativescript/types": "7.0.0"
}
@jpmartinsson You have some weird setup issue or something. Your issue is because an import is not found from N
2021-04-15 15:48:32.068435+0200 triplyui[2392:639104] file:///app/vendor.js:86221:134: JS ERROR TypeError: undefined is not an object (evaluating '_nativescript_core_utils_native_helper__WEBPACK_IMPORTED_MODULE_2__["iOSNativeHelper"].collections')
Though this file exists https://github.com/NativeScript/NativeScript/blob/master/packages/core/utils/native-helper.ios.ts. You need to try and find out why it is not "seen"
Thanks! Can you see any connection between this error and the connect function. I thought if it was a setup issue it would affect more things and not just the Connect call. The application dies exactly when the connection is completed, but no Promise has been returned. Where would you look for setup issues? The native-helper-files are in my node_modules (see attached image)
@jpmartinsson ok you need to check your webpack config maybe to make sure it manage to "choose" native-helper.ios.js or native-helper.android.js I am quite lost here without being able to reproduce here
@jpmartinsson did you ever solve this issue? I'm getting the same error on Ios. Any help is appreciated. Thanks
@dimitriospafos the latest version requires N 8.x
@farfromrefug what the highest version i can use with NS 7?
@dimitriospafos actually the laest should work with N7. You can try going back but i would say your issue comes from somewhere else. Try to debug and see what s happening from the callstack
After upgrade from old NativeScript-bluetooth to @nativescript-community/ble I cannot connect to device from iOS (14). Scanning works find and the device is found, but in the connect-call I get. I realise this has something to do with our project setup, but can anyone point us in the right direction?: Besides version 3.0.16, I have also tried 3.0.9 and 3.0.0 - with identical results.
my package.json deps: