AresDev
AresDev

Reputation: 638

How to install a NativeScript plugin from a forked repository?

I currently need to use the nativescript-https plugin but its repository is not updated and not packed to npm and it has a couple bugs (including one with AFNetworking with version) without a solution so I've forked the repository and try to add from this forked repo using:

tns pluging add [url of the repo]

this install the plugin with no errors, but when I try to run the app it shows the following error:

NativeScript encountered a fatal error: Error: Could not find module 'nativescript-https'

So I would like to know... which is the correct workflow to do this?

Upvotes: 0

Views: 156

Answers (2)

AresDev
AresDev

Reputation: 638

The error wasn't related to the plugin installation, the problem was that I needed to run Typescript compiler on plugin's folder to generate the .js files.

Upvotes: 0

Manoj
Manoj

Reputation: 21908

Compile and add the plugin folder to your package.json using relative path.

"myplugin": "file:myplugin/dist"

Assuming myplugin is your plugin folder placed at your project root, dist is where you have your compiled JS files.

Upvotes: 1

Related Questions