Exported variable ... has or is using name '...' from external module when using service

I have this service:
const make = Effect.gen(function* () {
  const algorithm = "aes-256-cbc";
  const ivLength = 16;

  const secretKey = yield* Config.redacted("SECRET_KEY");

  const encrypt = (token: string) =>
    Effect.try({
      try: () => {
        // encrypt
      },
      catch: (error) => {
        if (error instanceof Error) return new EncryptionError({ message: `Encryption failed: ${error.message}` });
        return new EncryptionError({ message: `Encryption failed.` });
      },
    });

  const decrypt = (encryptedToken: string) =>
    Effect.try({
      try: () => {
         // decrypt
      },
      catch: (error) => {
        if (error instanceof Error) return new DecryptionError({ message: `Decryption failed: ${error.message}` });
        return new DecryptionError({ message: `Decryption failed.` });
      },
    });

  return { encrypt, decrypt };
});

export class Crypto extends Context.Tag("core/Crypto")<Crypto, Effect.Effect.Success<typeof make>>() {
  static Live = Layer.effect(Crypto, make);
}

but get this error (and a couple others) when I use it
Exported variable 'googleCallbackHandler' has or is using name 'Stream' from external module ".../node_modules/.pnpm/effect@3.5.7/node_modules/effect/dist/dts/Cause" but cannot be named.
Was this page helpful?