YAES
YAES copied to clipboard
Cannot access 'src' before initialization
Please look: YAES/config/eleventy/image.js > line 50
...
async function handleImage({ src: relativeSrc, alt }) {
- if (!alt) throw new Error(`Missing \`alt\` on myImage from: ${src}`);
+ if (!alt) throw new Error(`Missing \`alt\` on myImage from: ${relativeSrc}`);
...