I was trying to do my own module/js import which contains:
exports.ReturnAll = function () {
return collection;
}
and imported it like this:
var vocabulary = require("~/js/vocabulary.js");
and used it like this:
vocabulary.ReturnSpecified("vowels");
but then it throws an error:
TypeError: vocabulary.ReturnSpecified is not a function File: "/data/data/org.nativescript.ExpandVocabularyKorea/files/app/views/alphabet/alphabet.js, line: 50, column: 15
and I’ve been searching on google with no luck, how can I fix this problem, please help. Thank you…