Nativescript-Vue issue with WebView and vue-cli

I have a mobile app using Nativescript-Vue on which I would like an option in … Read more Nativescript-Vue issue with WebView and vue-cli

I have a mobile app using Nativescript-Vue on which I would like an option in the drawer to open my desktop website in a WebView.

I have no problem opening any page on this WebView except the ones that are served with vue-cli. In that case, the WebView renders a blank page, and I have this error in my console:

chromium: found in
chromium: 
chromium: ---> <VMain>
chromium:        <VApp>
chromium:          <Root>", source: https://{SERVER_URL}/static/node_modules/vuetify/dist/vuetify.min.js (6)
chromium: [INFO:CONSOLE(19)] "Uncaught TypeError: Cannot read properties of null (reading 'setItem')", source: https://{SERVER_URL}/js/chunk-vendors.a6be394f.js (19)

I assumed this error is caused by vue-cli because it is the only case with which I get the error but I might be wrong on this.

Has anyone encoutered the same error ?

Note: everything works as intended on iOS, the issue is only on android

Source: Vue – Stack Overflow



Leave a Reply

Your email address will not be published. Required fields are marked *