Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienGllmt authored Dec 6, 2024
1 parent 28a3e7d commit 5c71a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/esm/api/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const register: Register = (
options,
) => {
if (!module.register) {
throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);
throw new Error(`Version ${process.version} of your runtime does not support `module.register()`. If you are using Node.js, upgrade to Node v18.19 or v20.6 and above.`);
}

if (!cjsInteropApplied) {
Expand Down

0 comments on commit 5c71a42

Please sign in to comment.