Software Archive
Read-only legacy content
17060 Discussions

bug: Local plugin does not support relative path

Jian_L_3
Beginner
409 Views

Intel XDK Version: 2807

I put my local plugins into {xdk-project}/myplugins folder (we use git to manage the code and colaborate, folder "plugins" is not in the repo). After I import the plugin, I see relative path used in the project file like this:

"origin": "./myplugins/com.jiusem.cordova.wechatshare",

But when I commit and my colleagues get the code, they cannot open the project with such error:

Plugin not found:

./myplugins/com.jiusem.cordova.wechatshare

The error occurs as well when I change the plugin (e.g. add variable). I tried importing the plugin outside the project folder and it works (but use absolute path on my PC).

Please clarify if this is a bug and is there any workaround. thanks.

 

Jian

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
409 Views

Is there a .gitignore file that is excluding the plugins directory from your project? Some of the sample apps are setup this way.

0 Kudos
Reply