Open opheliagame opened 1 year ago
I think I found the reason.
Ensure the version of sharp aligns with the eleventy-plugin-gen-favicons package: "npm ls sharp"
When checking version of sharp using this, the output is
├─┬ @11ty/eleventy-img@3.1.0
│ └── sharp@0.32.6 deduped
├─┬ eleventy-plugin-gen-favicons@1.1.2
│ └── sharp@0.31.3
└── sharp@0.32.6
I removed the favicon plugin from .eleventy.js
file and the project started running.
@oleeskild
Is this issue not happening on your end?
I can't help with the issue here but as I look at the error and I see windows file paths and installations of npm stuff with .exe files it just causes me to cringe a bit because that is such a different build environment for both access to the filesystem but also tool/shell environment than is being used for the official build (vercel/other) your site goes through.
I personally suggest that you consider setting up Windows Subsystem for Linux (WSL) on your windows machine if that is possible and setting up a deployment environment in there. That will better match the real deployment environment (vercel / github). That effectively spins up a well integrated Linux virtual machine that better mirrors GitHub Actions / Vercel / any real cloud deployment/build environment.
Hope you get/got past this issue.
When trying to run a completely new project locally I am getting the following error