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 was able to run gathio on Ubunto 24.04.1 LTS, Release 24.04, Codename noble.
However, I ran into several issues related to npm dependencies and one related to TypeScript configuration. Here are the issues I ran into and how I suggest they are resolved.
While I was able to successfully create an event, I will do some more testing and update tsconfig.json before opening a PR.
NPM dependencies
ELIFECYCLE Command failed when attempting to install generate-rsa-keypair npm package.
Solution: Removed generate-rsa-keypair npm package and use the following code with the 'node:crypto' package. generateKeyPairSync('rsa', { modulusLength: 4096, publicKeyEncoding: { type: 'spki', format: 'pem', }, privateKeyEncoding: { type: 'pkcs8', format: 'pem', cipher: 'aes-256-cbc', passphrase: 'top secret', }, });
EsLint package version not supported
Solution: Upgrade EsLint to 9.17.0
@types/dompurify package is deprecated
Solution: the package from package.json. dompurify currently provides its own type definitions. https://www.npmjs.com
Type errors in activitypub.js and routes.js when running pnpm build
Workaround: Add // @ts-nocheck to the start of activitypub.js and routes.js. However, I think updating tsconfig.json is a better solution.
The text was updated successfully, but these errors were encountered:
I was able to run gathio on Ubunto 24.04.1 LTS, Release 24.04, Codename noble.
However, I ran into several issues related to npm dependencies and one related to TypeScript configuration. Here are the issues I ran into and how I suggest they are resolved.
While I was able to successfully create an event, I will do some more testing and update tsconfig.json before opening a PR.
NPM dependencies
Solution: Removed generate-rsa-keypair npm package and use the following code with the 'node:crypto' package.
generateKeyPairSync('rsa', { modulusLength: 4096, publicKeyEncoding: { type: 'spki', format: 'pem', }, privateKeyEncoding: { type: 'pkcs8', format: 'pem', cipher: 'aes-256-cbc', passphrase: 'top secret', }, });
Solution: Upgrade EsLint to 9.17.0
Solution: the package from package.json. dompurify currently provides its own type definitions. https://www.npmjs.com
Workaround: Add // @ts-nocheck to the start of activitypub.js and routes.js. However, I think updating tsconfig.json is a better solution.
The text was updated successfully, but these errors were encountered: