title: How to remove cordova-plugin-compat?
body: <p>In the release notes of cordova-android 6.3.0 (<a href="https://cordova.apache.org/announcements/2017/09/27/android-release.html" rel="nofollow noreferrer">https://cordova.apache.org/announcements/2017/09/27/android-release.html</a>) it's written down that <code>cordova-plugin-compat</code> has to be removed</p>
  
  <p>If I try</p>
  
  <pre><code>cordova plugin rm cordova-plugin-compat
  </code></pre>
  
  <p>I get following error</p>
  
  <blockquote>
    <p>[ERROR] An error occurred while running cordova plugin remove
    cordova-plugin-compat --save (exit code 1):</p>
    
    <p>Error: The plugin ‘cordova-plugin-compat’ is required by
    (cordova-plugin-calendar, cordova-plugin-camera, cordova-plugin-file,
    cordova-plugin-geolocation), skipping uninstallation. (try --force if
    trying to update)</p>
  </blockquote>
  
  <p>If I then try to <code>--force</code> the remove, it works, the plugin is removed and I'm able to build my android app.</p>
  
  <p>BUT, I just removed my <code>iOS</code> platform to add it again and I face now the error</p>
  
  <blockquote>
    <p>cordova prepare ios Error: Cannot find plugin.xml for plugin "cordova-plugin-compat". Please try adding it again.</p>
    
    <p>[ERROR] An error occurred while running cordova prepare ios (exit code
    1).</p>
  </blockquote>
  
  <p>Any idea what am I doing wrong? Should really <code>cordova-plugin-compat</code> be removed? Why my iOS platform is referencing it, I thought it was only for android?</p>
  
  <p>I use cordova-android@6.3.0 and cordova-ios@4.5.1</p>
  
  <p>P.S.: If I remove and add the iOS platform, the compat plugin is automatically added as reference in package.json and package-lock.json</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>The last plugin release (<a href="https://cordova.apache.org/news/2017/11/10/plugins-release.html" rel="nofollow noreferrer">https://cordova.apache.org/news/2017/11/10/plugins-release.html</a>) most probably solve this issue respectively it looks like that the problem was the reference to the <code>cordova-plugin-compat</code> plugin from other plugin. But, </p>
  
  <p>I'm not yet able to totally test it and solve it because I'm using another plugin where compat is also referenced (<a href="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues/426" rel="nofollow noreferrer">https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues/426</a>). </p>
  
  <p>I will keep this thread open till I could 100% confirm that this solve the referencing of compat.</p>
  
  <p><strong>FINAL UPDATE</strong></p>
  
  <p>The PR to remove the dependency from <code>Calendar-PhoneGap-Plugin</code> to ‘cordova-plugin-compat’ went thru, I was able to remove this last plugin without "force"</p>