-
Notifications
You must be signed in to change notification settings - Fork 176
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
Running into "Cannot read properties of null (reading 'appendChild')" #264
Comments
Hi there wondering if you got anywhere with this? I am having a same issue when I have this in my public class MainActivity extends BridgeActivity { @Override public void onCreate(Bundle savedInstanceState) { registerPlugin(CameraPreview.class); super.onCreate(savedInstanceState); } } |
Same issue here, i cannot make it work on web |
Add a parent property to your config object, with the value set to the ID of the HTML element you want to attach the video preview to. So my app uses Vue and the root element is
I still can't get it to show anything, but at least this error is resolved and the |
Describe the bug
I've got an Ionic project using this plugin, and when I call
CameraPreview.start
this error gets spit out in the console:To Reproduce
Version numbers that are probably relevant:
I'm running this code:
The error occurs whenever that code is run.
Issue #247 looked similar, but the fixes linked here didn't work for me: Cap-go/capacitor-camera-preview#3
Any help is appreciated, thanks.
The text was updated successfully, but these errors were encountered: