We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 v13.8.0
Module.createRequireFromPath() is deprecated since Node v12.2.0. An error is thrown when it is used on v13.
Use haul in a project with Node version > 13.
In
haul/packages/haul-core/src/utils/importModule.ts
Line 88 in d64efa4
const createRequireWrapper = Module.createRequire || Module.createRequireFromPath // Create resolver for this module. const currentResolve = ((createRequireWrapper( module.filename ) as unknown) as { resolve: RequireResolve; }).resolve;
The method seems to be identical in function, only its naming has changed.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
Node v13.8.0
Description
Module.createRequireFromPath() is deprecated since Node v12.2.0. An error is thrown when it is used on v13.
Reproducible Demo
Use haul in a project with Node version > 13.
Proposed fix
In
haul/packages/haul-core/src/utils/importModule.ts
Line 88 in d64efa4
The method seems to be identical in function, only its naming has changed.
The text was updated successfully, but these errors were encountered: