Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'toDevicePixels' of undefined #10

Open
ChaDmiS opened this issue Dec 12, 2022 · 4 comments
Open

TypeError: Cannot read property 'toDevicePixels' of undefined #10

ChaDmiS opened this issue Dec 12, 2022 · 4 comments

Comments

@ChaDmiS
Copy link

ChaDmiS commented Dec 12, 2022

Hello!

I install plugin and try it on iOS and Android. It works on iOS successfully. But on Android I get error:

System.err: An uncaught Exception occurred on "main" thread.
System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function
System.err: TypeError: Cannot read property 'toDevicePixels' of undefined
System.err: File: (file: app/webpack:/vvf/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js:273:46)
System.err:
System.err: StackTrace:
System.err: ./node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js(file: app/webpack:/vvf/node_modules/@nativescript-community/gesturehandler/gesturehandler.android.js:273:46)
System.err: at webpack_require(file: app/webpack:/vvf/webpack/bootstrap:19:0)
System.err: at ./node_modules/@nativescript-community/ui-persistent-bottomsheet/index.js(file:///data/data/org.nativescript.exampleapp/files/app/vendor.js:3891:96)
System.err: at webpack_require(file: app/webpack:/vvf/webpack/bootstrap:19:0)
System.err: at ./app/app.ts(file:///data/data/org.nativescript.exampleapp/files/app/bundle.js:20:107)
System.err: at webpack_require(file: app/webpack:/vvf/webpack/bootstrap:19:0)
System.err: at webpack_exec(file:///data/data/org.nativescript.exampleapp/files/app/bundle.js:3824:39)
System.err: at (file:///data/data/org.nativescript.exampleapp/files/app/bundle.js:3825:221)
System.err: at webpack_require.X(file: app/webpack:/vvf/webpack/runtime/startup entrypoint:6:0)
System.err: at (file:///data/data/org.nativescript.exampleapp/files/app/bundle.js:3825:47)
System.err: at (file:///data/data/org.nativescript.exampleapp/files/app/bundle.js:3830:3)
System.err: at require(:1:266)

I don't understand, what it is means! Please, help!

@ChaDmiS
Copy link
Author

ChaDmiS commented Dec 12, 2022

My package.json dependencies

{
  "dependencies": {
    "@nativescript-community/ui-persistent-bottomsheet": "^0.0.24",
    "@nativescript-community/ui-svg": "^0.1.0",
    "@nativescript-community/ui-webview": "^1.4.2",
    "@nativescript/core": "~8.3.0",
    "@nativescript/google-maps": "^1.4.9",
    "@nativescript/theme": "~3.0.2",
    "@vue/composition-api": "^1.7.1",
    "nativescript-vue": "~2.9.0",
    "pinia": "^2.0.26"
  },
  "devDependencies": {
    "@nativescript/android": "8.3.1",
    "@nativescript/ios": "8.3.3",
    "@nativescript/preview-cli": "1.0.2",
    "@nativescript/types": "~8.3.0",
    "@nativescript/webpack": "~5.0.9",
    "@types/node": "~17.0.21",
    "nativescript-vue-template-compiler": "~2.9.0",
    "typescript": "~4.5.5",
    "vue": "~2.6.12"
  }
}

@farfromrefug
Copy link
Member

@ChaDmiS might be due to N 8.4 changes. Can you test with N 8.4?

@ChaDmiS
Copy link
Author

ChaDmiS commented Dec 15, 2022

Ok. I've updated ns to 8.4 and botomsheet earned on Android.
But when I try to use v-model="stepIndex", which I copied from demo-snippets/vue/Basic.vue, I'm getting an error :

[Vue warn]: You may have an infinite update loop in a component render function.

And animation is cancelled.

@farfromrefug
Copy link
Member

@ChaDmiS sorry for the late reply. Latest build should fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants