Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues with Ubuntu 24.04.1 LTS noble #180

Open
UnknownOrange314 opened this issue Jan 1, 2025 · 0 comments
Open

Build issues with Ubuntu 24.04.1 LTS noble #180

UnknownOrange314 opened this issue Jan 1, 2025 · 0 comments

Comments

@UnknownOrange314
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant