Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

ERR_INVALID_ARG_TYPE after upgrading node.js to v14 #177

Closed
@JoHuang

Description

@JoHuang

Node.js v14.5.0, mongodb-runner cannot get started
It worked on node v12.

> mongodb-runner start --topology=replicaset && npm run amendJest

  ◟ Starting a MongoDB deployment to test against...internal/fs/utils.js:701
    throw new ERR_INVALID_ARG_TYPE(
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (50900)
    at writeFile (fs.js:1385:5)
    at go$writeFile (/Users/apple/MyProj/node_modules/graceful-fs/graceful-fs.js:139:14)
    at Object.writeFile (/Users/apple/MyProj/node_modules/graceful-fs/graceful-fs.js:136:12)
    at Object.writeFile (/Users/apple/MyProj/node_modules/universalify/index.js:5:67)
    at /Users/apple/MyProj/node_modules/mongodb-runner/lib/index.js:240:12
    at nextTask (/Users/apple/MyProj/node_modules/mongodb-runner/node_modules/async/dist/async.js:4576:27)
    at next (/Users/apple/MyProj/node_modules/mongodb-runner/node_modules/async/dist/async.js:4584:13)
    at /Users/apple/MyProj/node_modules/mongodb-runner/node_modules/async/dist/async.js:321:20
    at /Users/apple/MyProj/node_modules/mongodb-runner/lib/index.js:235:11
    at getPIDPath (/Users/apple/MyProj/node_modules/mongodb-runner/lib/index.js:22:3) {
  code: 'ERR_INVALID_ARG_TYPE'
}
npm ERR! Test failed.  See above for more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions