JoshJ
Denoβ€’10mo ago
Josh

npm:@triton-one/yellowstone-grpc4: "This expression is not constructable"

Hey all,

I'm attempting to import a class from a default export named "Client" from this npm package named "@triton-one/yellowstone-grpc4", however trying to construct it gives an error saying it's not constructable. Checking the type definition file, the class looks like it's being exported properly, and does contain a constructor. Here's a minimal example to reproduce the issue:

import Client from "npm:@triton-one/yellowstone-grpc@^4.0.0";

const _client = new Client(
   "example rpc endpoint",
   undefined,
   undefined
);


Any ideas?
Was this page helpful?