[Capacitor] TypeError: Cannot read property 'data' of undefined
See original GitHub issueDescribe the bug
This happens the second time when I build the app. It seems something goes wrong with the rebuild command?
The only workaround is to remove the src-capacitor
and start over.
Codepen/jsFiddle/Codesandbox (required) Codepen is going to be difficult for mobile. It does work fine when simple running it from a browser (SPA).
To Reproduce Steps to reproduce the behavior:
cd project/src-capacitor
quasar build -m capacitor -T android --ide
- Install apk to device
- See error
The APK doesn’t install at all when running without --ide
. Also it doesn’t open Android Studio, I need to open it manually.
Expected behavior Build without the vendor error.
Screenshots See Describe the bug
Platform (please complete the following information):
OS: Arch Linux
Node: v14.8.0
NPM: 6.14.7
Yarn: N/A
Browsers: Brave
iOS: N/A
Android: S9 - Android 10
Electron: N/A
Additional context No build errors, only when running.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Yes, you need it. It’s the actual native app that wraps everything for Android. When building for iOS, an ios folder will also appear there. Same goes for Cordova too. But you first need to dev/build for that platform in order for those folders to show up. I recommend sticking with Capacitor for a whole lot of reasons.
Hi,
Can you try to “quasar build -m capacitor -d” (-d is for debug) and check the log again to see where the error actually happens pls? If error is not from devland (don’t think so by looking at the reported chunk) then is it possible for you to offer a reproducing repo (or upload a zip here – without node_modules in it)?