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

RangeError: Wrong length! #12

Open
starcrest opened this issue Jun 4, 2020 · 2 comments
Open

RangeError: Wrong length! #12

starcrest opened this issue Jun 4, 2020 · 2 comments

Comments

@starcrest
Copy link

I get the below error when running node index.js in the tutorial. I've tried fresh installs on both Mac OS X 10.15 and on Ubuntu 20.04, and gotten the same error on both.

/home/starcrest/truevault-react-js-sample-app/server/node_modules/truevault/build/index.js:2371
  if(numberLength != byteLength)throw RangeError(WRONG_LENGTH);
                                ^

RangeError: Wrong length!
    at validateArrayBufferArguments (/home/starcrest/truevault-react-js-sample-app/server/node_modules/truevault/build/index.js:2371:39)
    at new ArrayBuffer (/home/starcrest/truevault-react-js-sample-app/server/node_modules/truevault/build/index.js:2461:29)
    at zlib.js:330:28
    at NativeModule.compile (internal/bootstrap/loaders.js:364:7)
    at Function.NativeModule.require (internal/bootstrap/loaders.js:176:18)
    at Function.Module._load (internal/modules/cjs/loader.js:572:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/starcrest/truevault-react-js-sample-app/server/node_modules/node-fetch/index.js:12:12)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
@starcrest
Copy link
Author

Still not working on Mac OS X 10.15.

But I did get it working in Ubuntu, by fixing some yarn installation errors I'd missed. Clean yarn install on Mac doesn't help.

@sathkur
Copy link

sathkur commented Apr 5, 2021

Was able to fixed this. As @starcrest mentioned above, fixing you packages intallation errors, this should work. I did 'npm audit fix' and worked for me.

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

2 participants