I was able to correctly use the module added as a dependency in my Telerik Platform NativeScript project. The important point here is that you need to deploy the app as an application package on a device. Please ensure that you are doing so because the error pretty much resembles such thrown from the developer app for rapid on device testing. More on this topic here
For best results and especially when using custom plugins/modules - deploy and test your app as an actual package on a device. More on this matter can be found here
Here is my configuration and code just as a reference:
var orientation = require('nativescript-orientation');
alert(orientation.getOrientation()); // landscape / portrait
I hope this helps.
Telerik by Progress
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items