-
-
Notifications
You must be signed in to change notification settings - Fork 58
Description
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.