Skip to content

ava errors on Node <4.5.0 due to hullabaloo-config-manager #1354

Closed
@exogen

Description

@exogen

Description

Running ava errors immediately on Node 4.4 and lower with TypeError: this is not a typed array from hullabaloo-config-manager. That module's package.json specifies its minimum Node version as 4.5 and they ain't kiddin' – this affects basic usage of AVA.

(Unfortunately npm doesn't seem to warn about engines for transitive dependencies, so it doesn't even warn about hullabaloo-config-manager, but I believe it would warn about ava directly.)

I recommend updating AVA's engines from Node >=4 to >=4.5.

Test Source

// Empty test is fine to reproduce.

Error Message & Stack Trace

 ⠋ /Users/becbrian/Projects/Tests/test-ava/node_modules/ava/lib/cli.js:196
					throw err;
					^

TypeError: this is not a typed array.
    at Function.from (native)
    at Verifier.toBuffer (/Users/becbrian/Projects/Tests/test-ava/node_modules/hullabaloo-config-manager/lib/Verifier.js:137:19)
    at /Users/becbrian/Projects/Tests/test-ava/node_modules/ava/lib/babel-config.js:78:46
From previous event:
    at Api.run (/Users/becbrian/Projects/Tests/test-ava/node_modules/ava/api.js:71:5)
    at Object.exports.run.api.on.api.run.then [as run] (/Users/becbrian/Projects/Tests/test-ava/node_modules/ava/lib/cli.js:187:7)
    at Object.<anonymous> (/Users/becbrian/Projects/Tests/test-ava/node_modules/ava/cli.js:22:24)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:968:3

Config

(no config necessary)

Command-Line Arguments

ava

Relevant Links

Environment

$ node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
Node.js v4.4.7
darwin 16.5.0
$ ava --version
0.19.1
$ npm --version
4.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcurrent functionality does not work as desiredhelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions