Skip to content

"TypeError: Cannot read property 'name' of undefined" in Node.js 6.9.1 #86

@also

Description

@also

With the recent 1.3.5 release of ref, importing the module throws an error in Node.js 6.9.1. I've seen this on macOS 10.12.6 and 10.11.6

$ npm ls ref
/private/tmp/ref-test
└── ref@1.3.5

$ ~/Downloads/node-v6.9.1-darwin-x64/bin/node
> const r = require('ref')
TypeError: Cannot read property 'name' of undefined
    at overwriteInspect (/private/tmp/ref-test/node_modules/ref/lib/ref.js:1455:14)
    at Object.<anonymous> (/private/tmp/ref-test/node_modules/ref/lib/ref.js:1417:32)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at repl:1:11
>

$ node --version
v6.10.2

$ node
> const r = require('ref')
undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions