-
-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
On Ubuntu 22 and Node 22, when I run pnpm build I get the following
src/activitypub.js(1,21): error TS7016: Could not find a declaration file for module 'request'. '/srv/gathio/node_modules/.pnpm/request@2.88.2/node_modules/request/index.js' implicitly has an 'any' type.
If the 'request' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/request'
src/activitypub.js(6,26): error TS7016: Could not find a declaration file for module 'sanitize-html'. '/srv/gathio/node_modules/.pnpm/sanitize-html@2.13.0/node_modules/sanitize-html/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/sanitize-html` if it exists or add a new declaration (.d.ts) file containing `declare module 'sanitize-html';`
src/activitypub.js(23,5): error TS7006: Parameter 'eventID' implicitly has an 'any' type.
src/activitypub.js(24,5): error TS7006: Parameter 'domain' implicitly has an 'any' type.
src/activitypub.js(25,5): error TS7006: Parameter 'pubkey' implicitly has an 'any' type.
...
with many more compiling errors. From #108 it looks like it might be related to the typescript version, however my tsc version seems to match what's in the lockfile. Any ideas?
Metadata
Metadata
Assignees
Labels
No labels