You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've spotted a regression while bumping sponsorkit from 0.15.5 to 0.16.0 (and so, 0.16.1).
It's a regression from my point of view, but I can perfectly understand if you don't consider it is a regression. In that case, you can close this issue right away :)
pnpm i
SPONSORKIT_GITHUB_TOKEN=ghp_xxxxxxx SPONSORKIT_GITHUB_LOGIN=your_login pnpm build
# `SPONSORKIT_GITHUB_TOKEN=ghp_xxxxxx SPONSORKIT_GITHUB_LOGIN=julien-deramond pnpm build` for me
Node.js v20.12.2
7:20:46 AM
SponsorKit v0.16.1
✔ Loaded from cache ./.cache.json 7:20:46 AM
✔ [sponsors.wide] Wrote to ./sponsors.wide.json 7:20:46 AM
ℹ [sponsors.wide] Composing SVG... 7:20:46 AM
node:internal/fs/promises:1049
validateStringAfterArrayBufferView(data, 'data');
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at Object.writeFile (node:internal/fs/promises:1049:5)
at file:///Users/ju/static/node_modules/.pnpm/[email protected]/node_modules/sponsorkit/dist/cli.mjs:359:19
at Array.map (<anonymous>)
at applyRenderer (file:///Users/ju/static/node_modules/.pnpm/[email protected]/node_modules/sponsorkit/dist/cli.mjs:337:29)
at async run (file:///Users/ju/static/node_modules/.pnpm/[email protected]/node_modules/sponsorkit/dist/cli.mjs:300:5)
at async Object.handler (file:///Users/ju/static/node_modules/.pnpm/[email protected]/node_modules/sponsorkit/dist/cli.mjs:406:5) {
code: 'ERR_INVALID_ARG_TYPE'
}
Analysis
It appears that now, the formats parameter is mandatory. If I add the following, the script works again:
So, it's not an issue on my side, I'll update my project to make it work with the mandatory option, but I just wanted you to know that formats is now mandatory, wasn't before, in case it's an unwanted side effect :)
Describe the bug
Hello there!
I've spotted a regression while bumping sponsorkit from 0.15.5 to 0.16.0 (and so, 0.16.1).
It's a regression from my point of view, but I can perfectly understand if you don't consider it is a regression. In that case, you can close this issue right away :)
The working version with 0.15.5 is the
main
branch of https://github.com/julien-deramond/static.The issue happens within this PR julien-deramond/static#7.
In order to execute it locally, you can:
This will run https://github.com/julien-deramond/static/blob/main/build.sh which are basic commands, and here is the configuration: https://github.com/julien-deramond/static/blob/main/sponsorkit.config.ts.
The error is for each image:
Analysis
It appears that now, the
formats
parameter is mandatory. If I add the following, the script works again:So, it's not an issue on my side, I'll update my project to make it work with the mandatory option, but I just wanted you to know that
formats
is now mandatory, wasn't before, in case it's an unwanted side effect :)Reproduction
julien-deramond/static#7
System Info
Used Package Manager
pnpm
Validations
Contributions
The text was updated successfully, but these errors were encountered: