You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { BarcodeScanner} from "@nstudio/nativescript-barcodescanner";
CameraScan(): void {
var barcodescanner = new BarcodeScanner;
}
Compiling and installing in debug mode (tns run android --device XYZ) the home page is displayed.
Compiling and installing in release mode (tns run android --device XYZ --release --key-store....) the home page is displayed blank.
No error, no crash, no log error.
The page is simply blank.
Commenting out the line with BarcodeScanner reference
CameraScan(): void {
// var barcodescanner = new BarcodeScanner;
}
The text was updated successfully, but these errors were encountered:
ptomasini
changed the title
[nativescript-barcodescanner] blank page in release mode
[nativescript-barcodescanner] [Android] blank page in release mode
May 11, 2022
I'm also seeing this issue in production release. Works fine while in dev/debuggon mode. Below is an error from release build:
JS: CONSOLE ERROR: ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'content')
JS: TypeError: Cannot read properties of undefined (reading 'content')
JS: at 82928 (file:///data/data/com.myApp.app/files/app/vendor.js:2:911393)
JS: at __webpack_require__ (file:///data/data/com.myApp.app/files/app/runtime.js:1:197)
JS: at 79460 (file:///data/data/com.myApp.app/files/app/460.js:1:227)
JS: at Function.__webpack_require__ (file:///data/data/com.myApp.app/files/app/runtime.js:1:197)
JS: at _ZoneDelegate.invoke (file:///data/data/com.myApp.app/files/app/vendor.js:2:1506575)
JS: at Object.onInvoke (file:///data/data/com.myApp.app/files/app/vendor.js:2:1823124)
JS: at _ZoneDelegate.invoke (file:///data/data/com.myApp.app/files/app/vendor.js:2:1506515)
JS: at Zone.run (file:///data/data/com.myApp.app/files/app/vendor.js:2:1501922)
JS: at file:///data/data/com.myApp.app/files/app/vendor.js:2:1517835
JS: at _ZoneDelegate.invo...
I've a very strange problem:
1- created new test application with:
ns create --template @nativescript/template-drawer-navigation-ng
2- installed plugin:
npm install @nstudio/nativescript-barcodescanner
3 - modified home.component.ts
import { BarcodeScanner} from "@nstudio/nativescript-barcodescanner";
Compiling and installing in debug mode (tns run android --device XYZ) the home page is displayed.
Compiling and installing in release mode (tns run android --device XYZ --release --key-store....) the home page is displayed blank.
No error, no crash, no log error.
The page is simply blank.
Commenting out the line with BarcodeScanner reference
the home page is display as expected.
package.js
Physical device is Android 8.0.0.
Any Idea how to solve?
The text was updated successfully, but these errors were encountered: