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

Cannot find module 'bridge' on Android #12

Closed
hampoelz opened this issue Jul 14, 2023 · 1 comment
Closed

Cannot find module 'bridge' on Android #12

hampoelz opened this issue Jul 14, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@hampoelz
Copy link
Owner

hampoelz commented Jul 14, 2023

Currently, npm install inside the nodejs project directory creates a symlink to the bridge module included in the capacitor-nodejs package. When syncing the application with npx cap sync android, the symlink is copied unchanged to the native project, resulting in a symlink pointing to a non-existent path.

A possible solution would be to pack the bridge module and provide a tarball for installation, but this would impact the current implementation of the Electron platform.

As a workaround, install the bridge module with the --install-links option.

@hampoelz hampoelz added the bug Something isn't working label Jul 14, 2023
hampoelz added a commit that referenced this issue Jul 14, 2023
@hampoelz
Copy link
Owner Author

Should be fixed in v1.0.0-beta.4

@hampoelz hampoelz mentioned this issue Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant