Eleventy version 3 introduces ESM. eleventy v1 and v2 used commonJS. CommonJs uses require statement and module.export type syntax. while ESM uses import from or export default syntax. I changed all my *.js files to use ESM style and then added
Changed all *.js files from commonJS to ESM
module.exports = {something here};
** to ESM style
export default {}
import from