Search code examples
nativescriptnativescript-plugin

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?


Solution

  • 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.