11ty / eleventy-base-blog

A starter repository for a blog web site using the Eleventy static site generator.
https://eleventy-base-blog.netlify.app/
MIT License
1.2k stars 609 forks source link

Stackblitz build error #139

Closed zachleat closed 10 months ago

zachleat commented 1 year ago

https://stackblitz.com/github/11ty/eleventy-base-blog

$ npx @11ty/eleventy --serve --quiet
[11ty] Eleventy CLI Fatal Error: (more in DEBUG output)
[11ty] 1. Error in your Eleventy config file 'eleventy.config.js'. You may need to run `npm install`. (via EleventyConfigError)
[11ty] 2. Something went wrong installing the "sharp" module
[11ty] 
[11ty] Cannot find module '../build/Release/sharp-linuxnull-x64.node'
[11ty] Require stack:
[11ty] - /home/projects/qgnizjnxp.github/node_modules/sharp/lib/sharp.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/sharp/lib/constructor.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/sharp/lib/index.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy-img/img.js
[11ty] - /home/projects/qgnizjnxp.github/eleventy.config.images.js
[11ty] - /home/projects/qgnizjnxp.github/eleventy.config.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/Util/Require.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/TemplateConfig.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/EleventyExtensionMap.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/TemplateData.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/Eleventy.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/cmd.js
[11ty] 
[11ty] Possible solutions:
[11ty] - Install with verbose logging and look for errors: "npm install --ignore-scripts=false --foreground-scripts --verbose sharp"
[11ty] - Install for the current linuxnull-x64 runtime: "npm install --platform=linuxnull --arch=x64 sharp"
[11ty] - Consult the installation documentation: https://sharp.pixelplumbing.com/install (via Error)
[11ty] 
[11ty] Original error stack trace: Error: 
[11ty] Something went wrong installing the "sharp" module
[11ty] 
[11ty] Cannot find module '../build/Release/sharp-linuxnull-x64.node'
[11ty] Require stack:
[11ty] - /home/projects/qgnizjnxp.github/node_modules/sharp/lib/sharp.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/sharp/lib/constructor.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/sharp/lib/index.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy-img/img.js
[11ty] - /home/projects/qgnizjnxp.github/eleventy.config.images.js
[11ty] - /home/projects/qgnizjnxp.github/eleventy.config.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/Util/Require.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/TemplateConfig.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/EleventyExtensionMap.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/TemplateData.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/src/Eleventy.js
[11ty] - /home/projects/qgnizjnxp.github/node_modules/@11ty/eleventy/cmd.js
[11ty] 

Reported by https://mastodon.social/@scrwd/109761733430817379

zachleat commented 1 year ago

cc @stackblitz

zachleat commented 1 year ago

I’ve had other issues with the stackblitz stuff on WebC too, fwiw: https://github.com/11ty/webc/issues/56

zachleat commented 10 months ago

This is working now!

https://blog.stackblitz.com/posts/bringing-sharp-to-wasm-and-webcontainers/