On Wednesday, July 12, 2017 at 4:13:20 PM UTC-7, Jeff Albrecht wrote:
In the cloud9 ide I'm working on the bonescript shiftout
> <http://beagleboard.org/support/BoneScript/shiftOut/> on a BBB
> I decide to attempt to debug step in to the shiftOut.js however I get an
> error
>
> Could not open file: /usr/local/lib/node_modules/bonescript/src/index.js
>
> The file could not be found on the file system.
>
>
I try calling bonescript.js with an absolute path in the require()
// read in the BoneScript library
//var b = require('bonescript');
var b = require('/usr/local/lib/node_modules/bonescript/src/bonescript.js');
Which results in this error;
/usr/local/lib/node_modules/bonescript/src/bonescript.js:17
var head = document.getElementsByTagName('head')[0];
^
ReferenceError: document is not defined
at /usr/local/lib/node_modules/bonescript/src/bonescript.js:17:16
at Object.<anonymous>
(/usr/local/lib/node_modules/bonescript/src/bonescript.js:24:2)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/var/lib/cloud9/jshiftout.js:8:9)
at Module._compile (module.js:409:26)
Any pointers on how to debug bonescript.js I haven't learned how to stepIn
with the debugger without these two errors described. Any suggestions?
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/5774a25f-7963-41c8-a48c-6b91009aa4b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.