Skip to content
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

Fix require function name in README.md #64

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

RaisinTen
Copy link
Contributor

The variable holding the function returned by createRequire() is named req but the require function is being used below, so require is undefined here. This fixes that by ensuring that both variable names are the same.

The variable holding the function returned by `createRequire()` is named `req` but the `require` function is being used below, so `require` is undefined here. This fixes that by ensuring that both variable names are the same.

PR-URL: isaacs#64
Credit: @RaisinTen
Close: isaacs#64
Reviewed-by: @isaacs
@isaacs isaacs force-pushed the fix-require-function-name-in-readme branch from 0883cc0 to 2d0813d Compare June 6, 2024 16:29
@isaacs isaacs merged commit 2d0813d into isaacs:main Jun 6, 2024
4 checks passed
@isaacs
Copy link
Owner

isaacs commented Jun 6, 2024

Thanks!

@RaisinTen RaisinTen deleted the fix-require-function-name-in-readme branch June 7, 2024 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants