{"id":20287158,"url":"https://github.com/devcsrj/sveltekit-sharp","last_synced_at":"2026-06-05T03:31:15.337Z","repository":{"id":224033466,"uuid":"744434615","full_name":"devcsrj/sveltekit-sharp","owner":"devcsrj","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-23T10:30:43.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T08:24:28.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/sveltejs/kit/issues/11656","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devcsrj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-17T09:44:44.000Z","updated_at":"2024-01-17T09:55:52.000Z","dependencies_parsed_at":"2024-02-23T11:45:54.646Z","dependency_job_id":null,"html_url":"https://github.com/devcsrj/sveltekit-sharp","commit_stats":null,"previous_names":["devcsrj/sveltekit-sharp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcsrj%2Fsveltekit-sharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcsrj%2Fsveltekit-sharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcsrj%2Fsveltekit-sharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devcsrj%2Fsveltekit-sharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devcsrj","download_url":"https://codeload.github.com/devcsrj/sveltekit-sharp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780497,"owners_count":20019061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T14:38:32.610Z","updated_at":"2026-06-05T03:31:14.680Z","avatar_url":"https://github.com/devcsrj.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Steps\n\nRun the following:\n\n```shell\nnpm install\nnpm run build\ncd build\nnode .\n```\n\nThen, go to:\n\n```\nhttp://localhost:3000/api/demo.png\n```\n\nThe above will fail with:\n\n```\nError: Could not load the \"sharp\" module using the darwin-arm64 runtime\nundefined: Could not dynamically require \"../src/build/Release/sharp-darwin-arm64.node\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.\nundefined: Could not dynamically require \"../src/build/Release/sharp-wasm32.node\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.\nundefined: Could not dynamically require \"@img/sharp-darwin-arm64/sharp.node\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.\nundefined: Could not dynamically require \"@img/sharp-wasm32/sharp.node\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.\nPossible solutions:\n- Ensure optional dependencies can be installed:\n    npm install --include=optional sharp\n    yarn add sharp --ignore-engines\n- Ensure your package manager supports multi-platform installation:\n    See https://sharp.pixelplumbing.com/install#cross-platform\n- Add platform-specific dependencies:\n    npm install --os=darwin --cpu=arm64 sharp\n- Consult the installation documentation:\n    See https://sharp.pixelplumbing.com/install\n    at requireSharp (file:///Users/devcsrj/Projects/devcsrj/sveltekit-sharp/build/server/chunks/_server.ts-XFgYmyCb.js:3501:10)\n```\n\nOn dev mode however, it works fine with:\n\n![](./static/expected.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcsrj%2Fsveltekit-sharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevcsrj%2Fsveltekit-sharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevcsrj%2Fsveltekit-sharp/lists"}