Skip to content

Build issues with Ubuntu 24.04.1 LTS noble #180

@UnknownOrange

Description

@UnknownOrange

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions