-
Notifications
You must be signed in to change notification settings - Fork 46
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
IONIC 4 Failed to install cordova-plugin-connectsdk: Error: Cannot find module internal/util/types #77
Comments
Same issue using vanilla Cordova (no Ionic)
cordova -v: node -v: npm -v: OS is up-to-date Ubuntu 16.04 LTS amd 64 bit; NPM, Node and Cordova installed via standard repositories. |
Having this same exact issue here. cordova - 8.1.2 OS is Ubuntu 18.04.1 LTS. This is the only plugin that I've tried to add to my project that I've had installation issues with. |
I have the same issue. My OS is windows 10. error Any workaround and fix would be appreciated. |
I am seeing similar on a vanilla cordova. npm -v I am on ubuntu. I have read a few other posts and have tried npm audit fix and npm rebuild. |
same here |
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'"
I just submitted a pull request which fixes this issue for me on Cordova 9.0.0 I think it will work other versions as well. Basically, the required node_modules were committed to the repo and were not dynamically retrieved by node 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.) |
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'"
Hi @Lindsay-Needs-Sleep, did u get the cordova project compiled after you successfully added the plugin? I was able to add the plugin using your fork but then no luck in building the cordova project. I tried fixing build.gradle but everytime it throws new error. Can you please help? |
Hi @pgcan! Sure, what error did you get? (If you haven’t done this) You can also try deleting these 3 folders: and then running “cordova prepare android” again |
Thanks @Lindsay-Needs-Sleep for your quick response, after struggling a whole day I removed this plugin and now I am trying another plugin (cordova-plugin-presentation). I will get back to you if I decide to use this plugin again. |
For sure! To be fair, I also moved away from this plugin, I wasn’t able to get the plugin working the way I had hoped and due to development difficulty I left [submodules are the worst o.o]. I went back to trying to get cordova-plugin-chromecast to work properly. Maybe in the distant future I will return. The potential of this plugin is much greater I think. Please share how cordova-plugin-presentation goes! (For future readers :) ) |
Hello, thanks for this good plugin it really helps.
installing the plugin Im getting this:
Cordova
8.0.0
Node
v8.12.0
npm
6.4.1
IONIC
4.1.2
The text was updated successfully, but these errors were encountered: