Skip to content

Cannot read property 'onReady' of undefined #230

Open
@laggingreflex

Description

@laggingreflex

Getting this error on Windows, when requiring proxyquire in more than 1 files

Relatively simple reproduction here

Basically:

  • a.js
    require('proxyquire')
  • b.js
    require('proxyquire')
  • index.js
    require('./a')
    require('./b')

Only seems to be happening on Windows (10, build 1809) and Node v11.4. Update: Narrowed down further to exactly 11.4, it still works on 11.3. I'm guessing it's a Node issue, probably introduced in 11.4

Works on Node v9.5, v10.10.

Works also on WSL (node v11.4)

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