Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12787

cordova@7 plugin add --link is broken

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      with the change to cordova-fetch for local paths, cordova plugin add SOMELOCALPATH --link doesn't work anymore.

      The plugin first gets `npm installed` into your cordova project (so it now lives in node_modules), and then it gets copied into your plugins directory. During the copy to your plugins directory step, that is when the symlink gets created. So the symlink points to your node_modules/PLUGINDIR and not the local path to your plugin.

      I believe the solution to fixing this would be to `npm link` the plugin instead of `npm install` when adding it with `--link` flag.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Nikita Matrosov Nikita Matrosov
            stevegill Steve Gill
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment