Hard fork node-parent-require #1062
Labels
enhancement
Planned feature
good first issue
If you're new to the project, this would be a good issue to try resolving first
help wanted
mentor available
A maintainer is available to help you work on this if you take it up
One of our dependencies hasn't been updated in 8 years: https://github.com/jaredhanson/node-parent-require
It's a small module, so I think we should just bundle it in our
lib
directory and provide some necessary updates to it (see repo's issue queue):"As a result of nodejs/node#32217, module.parent is deprecated (DEP0144), at least in part because it is not set for a CJS module imported using the ESM loader. The deprecation causes parent-require to print a warning if node is run with --pending-deprecation (or throw if run with --throw-deprecation):
"The suggestion in the DEP0144 docs is to use require.cache with module.children to find parents:
Unfortunately, I don't think this would work with the ESM loader, which does not use require.cache. I'm not sure there is a way to support the ESM loader, but I thought it was worth opening this issue so that you are aware."
The text was updated successfully, but these errors were encountered: