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

Fixes Android install errors (eg. Cannot find module internal/util/types) #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Lindsay-Needs-Sleep
Copy link

node_modules should not be committed. Instead add them as a dependency.
This fixes #77
Fixes "Error: Cannot find module internal/util/types"
and Fixes "Failed to install 'cordova-plugin-connectsdk': Error: Cannot find module 'setimmediate'"

This fixes ConnectSDK#77
Fixes "Error: Cannot find module internal/util/types"
and Fixes "Failed to install 'cordova-plugin-connectsdk': Error: Cannot find module 'setimmediate'"
@Lindsay-Needs-Sleep
Copy link
Author

Basically, the required node_modules were committed to the repo and were not dynamically retrieved by npm before install. So removing the hard-coded node_modules and adding them to the dependencies seems to have worked. (I'm thinking the hard-coded node_modules worked with a specific version of Cordova which included the node_modules' dependencies as part of the platform but have since been removed or changed.)

@Lindsay-Needs-Sleep Lindsay-Needs-Sleep changed the title Fixes Fixes "Error: Cannot find module internal/util/types" Fixes Android install errors (eg. Cannot find module internal/util/types) Aug 19, 2019
@Lindsay-Needs-Sleep
Copy link
Author

I believe this will also fix #62

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

Successfully merging this pull request may close these issues.

IONIC 4 Failed to install cordova-plugin-connectsdk: Error: Cannot find module internal/util/types
1 participant