diff --git a/src/index.ts b/src/index.ts index 56c1ec1..8e4daca 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,6 @@ import { InfluxDB, Point } from "@influxdata/influxdb-client"; import * as dotenv from "dotenv"; -import fetch from "node-fetch"; +const fetch = require("node-fetch"); dotenv.config(); const INFLUXDB_URL = process.env.INFLUXDB_URL;