Skip to content

Commit

Permalink
Fixes #3568
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 12, 2024
1 parent 6317053 commit 7210a4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EleventyCommonJs.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7210a4d

Please sign in to comment.