Skip to content

RangeError: Wrong length! #12

Description

@starcrest

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions