diff --git a/doc/api/esm.md b/doc/api/esm.md index 3d7882c98d9302..97124486cc2bf5 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1231,7 +1231,7 @@ console.log('I just set some globals!'); const { createRequire } = getBuiltin('module'); -const require = createRequire(process.cwd + '/'); +const require = createRequire(process.cwd() + '/'); // [...] `; }