-
-
Notifications
You must be signed in to change notification settings - Fork 35.1k
Open
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.
Description
Version
v7.1.0 and newer (last working version was v6.17.1)
Platform
Linux
Subsystem
No response
What steps will reproduce the bug?
Require a dependency that doesn't exist. Catch the error. Dynamically add the missing package to the node_modules. It should not contain an index.js file but should use a custom entry point instead. Require the now not missing package again.
Expected result: the modules is loaded.
Actual result: module not found error is thrown.
I have create a repro repo: https://github.com/zkochan/require-issue
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
On the second require the module is loaded
Additional information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
esmIssues and PRs related to the ECMAScript Modules implementation.Issues and PRs related to the ECMAScript Modules implementation.moduleIssues and PRs related to the module subsystem.Issues and PRs related to the module subsystem.