Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Number #44

Open
EricWiener opened this issue Aug 23, 2018 · 1 comment
Open

Invalid Number #44

EricWiener opened this issue Aug 23, 2018 · 1 comment

Comments

@EricWiener
Copy link

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

@EricWiener
Copy link
Author

I attempted to correct all the numbers in ocrad.js by removing the 0 at the front. That worked, but then I received an error that 'fs' could not be found. I don't believe this will work with React Native. If anyone has had any success I would be very grateful to hear how you accomplished it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant