I'm trying to use ocrad.js with React Native. I installed ocrad with npm using npm i ocrad.js --save and then I attempted to import with var OCRAD = require('ocrad.js');. When I attempt to load the app I get a bundling error because of an invalid number.
error: bundling failed: SyntaxError: .../node_modules/ocrad.js/ocrad.js: Invalid number (1555:51)
1553 | }}};
1554 | var MEMFS={ops_table:null,CONTENT_OWNING:1,CONTENT_FLEXIBLE:2,CONTENT_FIXED:3,mount:function (mount) {
> 1555 | return MEMFS.createNode(null, '/', 16384 | 0777, 0);
| ^
1556 | },createNode:function (parent, name, mode, dev) {
1557 | if (FS.isBlkdev(mode) || FS.isFIFO(mode)) {
1558 | // no supported
I'm trying to use ocrad.js with React Native. I installed ocrad with npm using
npm i ocrad.js --saveand then I attempted to import withvar OCRAD = require('ocrad.js');. When I attempt to load the app I get a bundling error because of an invalid number.