Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Cannot find module <project_path>/plugins/ios.json #208

Closed
errolgr opened this issue Sep 2, 2016 · 2 comments
Closed

Cannot find module <project_path>/plugins/ios.json #208

errolgr opened this issue Sep 2, 2016 · 2 comments
Labels
Milestone

Comments

@errolgr
Copy link

errolgr commented Sep 2, 2016

I am getting an error when trying to build or add ios as a platform when using CHCP. During the build it will throw an error "CHCP plugin after prepare hook: Cannot find module /plugins/ios.json". I am using cordova 6.0 and ionic 1.7.16.

The error is resolved by removing CHCP plugin. This plugin works fine when building on an android platform.

@nikDemyankov nikDemyankov added this to the v1.5.1 milestone Sep 5, 2016
@nikDemyankov
Copy link
Member

For some reason you don't have plugins/ios.json config in your project, although it should be created by Cordova when you add plugins. It contains the list of installed plugins.

I can try to make a workaround for this, but it's not a usual thing, I think... For now, if you want, you can do the following:

  1. Open plugins/cordova-hot-code-push-plugin/scripts/lib/iosWKWebViewEngineSupport.js.
  2. If you are NOT using wkwebview in your project, then comment out lines 50-53.
  3. If you are using wkwebview in your project, then comment out lines 50-51 and line 53.

@nikDemyankov
Copy link
Member

Released v1.5.1 with the fix. Should work now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants