Closed artulloss closed 2 years ago
Thanks for bringing this to my attention.
Looks like newer versions of node-fetch no longer support require
syntax, and when we merged this PR to update Sharp, node-fetch was updated to the incompatible version too.
We've resolved this by switching to another dependency that continues to support require
syntax.
Please try again with eleventy-plugin-lazyimages v2.1.2 and let me know if this resolves your issue.
Looks like this change fixed it, many thanks for this awesome plugin!
Requiring the plugin following the instructions in readme causes eleventy crash.
I have this problem on both my local environment and two codespaces - one I setup to specifically test this problem.
How to reproduce
Install plugin Add to .eleventy.js
const lazyImagesPlugin = require('eleventy-plugin-lazyimages');
Error in console, eleventy crashes on launchConsole output