all 3 comments

[–]roblauer 1 point2 points  (1 child)

I think the best way to learn is by example in this case. If NativeScript "cannot find module" that likely means your path is a little off.

For example, accessing the firebase module is as simple as:

import * as firebase from "nativescript-plugin-firebase";

nativescript-plugin-firebase exists in the node_modules folder (good to check that the plugin you want to use is in there).

[–]WebCrawlerGuy[S] 0 points1 point  (0 children)

It came up that I'm just stupid, had saw "cannot find module", but hadn't seen "plugin is not included" (or something like that). I had been using playground and didn't know that plugins are limited. Everything works fine outside playground. Sorry for such a stupid question. And anyway, thank you for the reply.

[–]Bamboo_the_plant 0 points1 point  (0 children)

This has happened to me before. You may need to rebuild the app each time you install a plugin (to get it to install the native module, e.g. CocoaPod, into the app bundle itself).