DeskGap icon indicating copy to clipboard operation
DeskGap copied to clipboard

Can't find variable: require

Open tcheezz opened this issue 5 years ago • 1 comments

"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 ?

tcheezz avatar May 08 '19 07:05 tcheezz

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.

nicck avatar Sep 09 '19 21:09 nicck