I am running node v19.1.0, and have installed your lib to be used in a Next.js project. It throws an error when imported into a page while running dev mode:
Error: Cannot find module 'http'
I am importing it as import tiny from "tiny-json-http"
Strangely, when used during a build for dynamic route loading, it works fine... I have tried removing node-modules and reinstalling, to no avail.
Hi!
I am running node v19.1.0, and have installed your lib to be used in a Next.js project. It throws an error when imported into a page while running dev mode:
Error: Cannot find module 'http'
I am importing it as
import tiny from "tiny-json-http"
Strangely, when used during a build for dynamic route loading, it works fine... I have tried removing node-modules and reinstalling, to no avail.