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

delete require.cache[modulePath] follow by require does not reload module #3310

@ghost

Description

delete require.cache[modulePath];
moduleObject = require(modulePath);

returns an empty object.

require.cache[modulePath].exports

is also empty.

Am I doing something wrong, or should the module reload properly?

(Using node 0.6.18 on Ubuntu 12.04)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions