You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using CommonJS syntax in Node 23, global data files are not loaded properly and results in the data being unavailable throughout the build.
This is because Module objects for modules using module.exports now contain two keys, 'default' and 'module.exports', and Eleventy specifically checks if there is only one before accessing the default property. Then it goes on to make sure the keys from 'default' and those in the top level are the same, which fails on the 'module.exports' key.
The text was updated successfully, but these errors were encountered:
Eleventy
3.0.0
Describe the bug
When using CommonJS syntax in Node 23, global data files are not loaded properly and results in the data being unavailable throughout the build.
This is because
Module
objects for modules usingmodule.exports
now contain two keys,'default'
and'module.exports'
, and Eleventy specifically checks if there is only one before accessing thedefault
property. Then it goes on to make sure the keys from'default'
and those in the top level are the same, which fails on the'module.exports'
key.The text was updated successfully, but these errors were encountered: