I'm on a Remix project, I added simple crypto through pnpm then on top of my file I just added
import SimpleCrypto from "simple-crypto-js";
const secretKey = "some-unique-key";
const crypto = new SimpleCrypto(secretKey);
But this doesn't work properly with Remix build
info rebuilding... (~ app/routes/_tools.qr-code-time-tracking.tsx)
info rebuilt (496ms)
TypeError: SimpleCrypto is not a constructor
at file:///...website/app/routes/_tools.qr-code-time-tracking.tsx:12:16
at ModuleJob.run (node:internal/modules/esm/module_job:194:25)
I'm on a Remix project, I added simple crypto through
pnpm
then on top of my file I just addedBut this doesn't work properly with Remix build
Do you know what could be going on right now?