DeskGap
DeskGap copied to clipboard
Can't find variable: require
"Can't find variable: require" is displayed in the bowser javascript console when trying to use fs native node library with :
var fs = require('fs');
Any idea to solve the issue ?
You can't use require
in browser javascript (aka UI Thread), but you can in Node Thread. More here: https://deskgap.com/architecture/. There is an example of code in issue #34 comments.