-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node >= v12.16.0 Cannot install a module without an index.js at root after require() has been called once #28
Comments
deepal
changed the title
Cannot install a module without an index.js at root after require() has been called once
Node v12.x.x Cannot install a module without an index.js at root after require() has been called once
Mar 14, 2020
deepal
changed the title
Node v12.x.x Cannot install a module without an index.js at root after require() has been called once
Node >v12.x.x Cannot install a module without an index.js at root after require() has been called once
Mar 14, 2020
deepal
changed the title
Node >v12.x.x Cannot install a module without an index.js at root after require() has been called once
Node >= v12.16.0 Cannot install a module without an index.js at root after require() has been called once
Mar 15, 2020
deepal
added
critical bug
bug
Something isn't working
and removed
bug
Something isn't working
labels
Mar 15, 2020
deepal
added a commit
that referenced
this issue
Mar 15, 2020
deepal
added a commit
that referenced
this issue
Mar 15, 2020
vishmimoney
pushed a commit
that referenced
this issue
Mar 15, 2020
This issue is being investigated. Until then a minor workaround is added in #31 and a compatibility warning is displayed as follows. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce:
chance
firstunderscore
secondunderscore
does not have anindex.js
at the module root. Instead, the entry point is configured viamain
attribute inpackage.json
This happens if the
require()
has been called once to install a module dynamically. Installation of the second module is successful, but it cannot berequire
d and throwsMODULE_NOT_FOUND
error.This issue is specific to Node v12.16.0 and above.
This issue is due to nodejs/node#29492
The text was updated successfully, but these errors were encountered: