# module not found: FuseJS/LocalNotifications

**URL:** <https://forums.fusetools.com/t/module-not-found-fusejs-localnotifications/6517>\
**Category:** Bug Reports\
**Created:** [June 11, 2016, 1:08pm UTC](https://forums.fusetools.com/t/module-not-found-fusejs-localnotifications/6517 "2016-06-11T13:08:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bulakhvad](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bulakhvad](https://forums.fusetools.com/u/bulakhvad)\
**Post date:** [June 11, 2016, 1:08pm UTC](https://forums.fusetools.com/t/module-not-found-fusejs-localnotifications/6517/1 "2016-06-11T13:08:17Z")

</div>

Error: JavaScript error in MainView.ux line 5. Uncaught Fuse.Scripting.Error: require(): module not found: FuseJS/LocalNotifications in Fuse.Reactive.JavaScript

```auto
<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>

```

---

<div class="post-metadata">

**Author:** ![bulakhvad](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bulakhvad](https://forums.fusetools.com/u/bulakhvad)\
**Post date:** [June 11, 2016, 1:14pm UTC](https://forums.fusetools.com/t/module-not-found-fusejs-localnotifications/6517/2 "2016-06-11T13:14:15Z")

</div>

.unoproj:

```auto
{
  "RootNamespace":"",
  "Packages": [
      "Fuse",
      "FuseJS",
      "Fuse.LocalNotifications",
      "Fuse.BasicTheme"
  ],
  "Includes": [
    "*"
  ]
}

```

---

<div class="post-metadata">

**Author:** ![Anders\_Bondehagen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_bondehagen/32/98_2.png) [@Anders\_Bondehagen](https://forums.fusetools.com/u/Anders_Bondehagen)\
**Post date:** [June 13, 2016, 1:01pm UTC](https://forums.fusetools.com/t/module-not-found-fusejs-localnotifications/6517/3 "2016-06-13T13:01:20Z")

</div>

I just tested this on Windows using version 0.20.3 and it works fine. Could you try running `uno clean` in your project folder first?
