geluk / matrix-webhook-gateway

Webhook gateway for Matrix / Synapse. Create and manage webhooks in Matrix channels for multiple services.
MIT License
18 stars 4 forks source link

Use node-fetch 2.x release #79

Closed wfdewith closed 1 year ago

wfdewith commented 1 year ago

Since node-fetch is an ES6 module dependency, and this library is still a CommonJS module, we cannot import it anymore. The easiest solution is to downgrade to the (still supported) 2.x release of node-fetch.

Migrating the entire application to be an ES6 module is something for the future.

This PR fixes the current runtime error on master.