Error: JavaScript error in MainView.ux line 5. Uncaught Fuse.Scripting.Error: require(): module not found: FuseJS/LocalNotifications in Fuse.Reactive.JavaScript
<App>
<Router ux:Name="router"/>
<JavaScript>
var Lifecycle = require("FuseJS/Lifecycle");
var LocalNotify = require("FuseJS/LocalNotifications");
var Storage = require("FuseJS/Storage");
var last = Storage.readSync("news.txt");
var state;
Lifecycle.onEnteringForeground = function() {
state = false;
console.log ("onEnteringForeground");
};
Lifecycle.onEnteringInteractive = function() {
console.log ("onEnteringInteractive");
};
Lifecycle.onExitedInteractive = function() {
state = true;
console.log ("onExitedInteractive");
};
Lifecycle.onEnteringBackground = function() {
setTimeout(function() {
while(state)
{
Storage.read("news.txt")
.then(function(res) {
if (last != res) LocalNotify.now("1", "123", "payload", true);
})
}
}, 1000);
};
Lifecycle.onTerminating = function() {
console.log ("onTerminating");
};
</JavaScript>
<Navigator DefaultTemplate="login">
<LoginPage ux:Template="login" router="router" />
<MainPage ux:Template="main" router="router" />
<WebWeb ux:Template="webweb" router="router"/>
<FriendList ux:Template="friend" router="router"/>
</Navigator>
</App>