-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Description
Issue
When node-canvas installed along with sharp, site can't build with error
[11ty] Eleventy CLI Fatal Error: (more in DEBUG output)
[11ty] 1. Error in your Eleventy config file '.eleventy.js'. (via EleventyConfigError)
[11ty] 2. The specified procedure could not be found.
[11ty] \\?\E:\Projects\frontend\portfolio\node_modules\canvas\build\Release\canvas.node (via Error)
[11ty]
[11ty] Original error stack trace: Error: The specified procedure could not be found.
[11ty] \\?\E:\Projects\frontend\portfolio\node_modules\canvas\build\Release\canvas.node
[11ty] at Module._extensions..node (node:internal/modules/cjs/loader:1353:18)
[11ty] at Module.load (node:internal/modules/cjs/loader:1125:32)
[11ty] at Module._load (node:internal/modules/cjs/loader:965:12)
[11ty] at Module.require (node:internal/modules/cjs/loader:1149:19)
[11ty] at require (node:internal/modules/helpers:121:18)
[11ty] at Object.<anonymous> (E:\Projects\frontend\portfolio\node_modules\canvas\lib\bindings.js:3:18)
[11ty] at Module._compile (node:internal/modules/cjs/loader:1267:14)
[11ty] at Module._extensions..js (node:internal/modules/cjs/loader:1321:10)
[11ty] at Module.load (node:internal/modules/cjs/loader:1125:32)
[11ty] at Module._load (node:internal/modules/cjs/loader:965:12)
ERROR: "watch:eleventy" exited with 1.
Steps to Reproduce
- Install @11ty/eleventy-img
- Install canvas
- Get the exception
Your Environment
- Version of node-canvas: 2.11.2
- Version of sharp: @11ty/[email protected] -> [email protected]
- Environment: node 20.0.0 on Windows 11
Metadata
Metadata
Assignees
Labels
No labels