This question is locked. New answers and comments are not allowed.
I installed this package and its dependencies from the npm: https://www.npmjs.com/package/nativescript-orientation
And then tried to require it using require("nativescript-orientation") but I get an error saying that it failed to find the module relative to /app/tns_modules/
Here is what my package.json file looks like:
{
"nativescript": {},
"dependencies": {
"tns-core-modules": "2.3.0",
"nativescript-orientation": "1.5.4",
"nativescript-dom": "1.0.8",
"nativescript-globalevents": "1.1.2"
},
"devDependencies": {}
}
Am I missing a step here?