diff --git a/src/EleventyCommonJs.cjs b/src/EleventyCommonJs.cjs index 14ca89ad3..522726564 100644 --- a/src/EleventyCommonJs.cjs +++ b/src/EleventyCommonJs.cjs @@ -28,9 +28,9 @@ if(!canRequireModules()) { 3. (More work) Change your project to use ESM-first by adding \`"type": "module"\` to your package.json. Any \`.js\` will need to be ported to use ESM syntax (or renamed to \`.cjs\`.) - 4. (Short term workaround) Use the --experimental-require-module flag to enable this behavior. Read - more: https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require It is possible that the - newest version of Node has this enabled by default—you can try upgrading your version of Node.js.`); + 4. Upgrade your Node version (at time of writing, v22.12 or newer) to enable this behavior. If you use a version + of Node older than v22.12, try the --experimental-require-module command line flag in Node. Read more: + https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require`); error.skipOriginalStack = true;