0

No backend exists for Node.js Node_modules Error

I'm trying to spin up a simple demo app to boot up an express js hello world server. My folder structure looks as follows.

/node_modules
/index.html

My index.html contains the following code.


```
<html>
<script>
function test()
{
  var express = require('/storage/sd/express')
  var app = express()
  app.get('/', function (req, res) { res.send('Hello World!'); } )
  app.listen(8000, function() { console.log('Example app listening on port 8000!') });
}
</script>
<body onload="test()">
  <div id="root"></div>
</body>
</html>

```

Right now, I keep getting this error (see last line).

[ 35.651] BSPLAY: file:///index.html
[ 35.652] Remote debugging server started successfully. Try pointing a Chromium-based browser to http://0.0.0.0:2999
[ 36.033] V8::ResourceConstraints::ConfigureDefaults reg flag not set limits low 692060160 medium 1073741824 high 2147483648
[ 36.033] V8::ResourceConstraints::ConfigureDefaults physical 2082406400 swap 0 - [2] - max 8 old 512 exe 256
[ 36.978] [INFO] [source /share/qt5/resources/init.js:9]: Not found in Node.js, trying Brightsign objects
[ 36.997] [ERROR] [source file:///index.html:1]: Uncaught NotFoundError: Failed to construct 'BSObject': No backend exists for: /storage/sd/express

6 comments

  • 0
    Avatar
    Andreas Planck

    Found any solution to this?

  • 0
    Avatar
    Ricky

    Unfortunately, I haven't. I tried to email the support team about it, but they forwarded it off to someone else who never answered me.

  • 0
    Avatar
    Andreas Planck

    Damn =(

  • 0
    Avatar
    Bright Scripters

    Haven't done any Node work on the player yet, but the IP address that you are getting caught my eye. 

     http://0.0.0.0:2999 could indicated that the player's network settings are off.

    Can you access the player from your web browser? IP would need to be other than 0.0.0.0...

  • 0
    Avatar
    John Lindal

    On my player, it loads express and express-hbs, but fails to load i18n and my own custom modules...

  • 0
    Avatar
    John Lindal

    Shouldn't it be '/storage/sd/node_modules/express' ?

Please sign in to leave a comment.