Skip to content

Invalid Number #44

@EricWiener

Description

@EricWiener

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions