From 8c8e9b906d18f8c59228d1d212f3346c629f3515 Mon Sep 17 00:00:00 2001 From: Ro Ramtohul Date: Mon, 29 Sep 2025 19:36:33 +0100 Subject: [PATCH] fix: import axios correctly As mentioned in [axios's example](https://axios-http.com/docs/example), in order to use axios with types (which a lot of people are now doing), the `.default` import needs to be used. This doesn't impact non-typescript based users, but means typescript users can actually use sendgrid again. Closes #1426 --- packages/client/src/classes/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/classes/client.js b/packages/client/src/classes/client.js index 22357c0ba..d05278c9f 100644 --- a/packages/client/src/classes/client.js +++ b/packages/client/src/classes/client.js @@ -1,5 +1,5 @@ 'use strict'; -const axios = require('axios'); +const axios = require('axios').default; const pkg = require('../../package.json'); const { helpers: {