I'm trying to use the generated typed client from @sanity-codegen/client in an ESM package (ie: type: "module" in package.json) and I'm getting not found errors trying to import anything, along with warnings from node about loading files as ES modules.
I'm trying to use the generated typed client from
@sanity-codegen/client
in an ESM package (ie:type: "module"
inpackage.json
) and I'm getting not found errors trying to import anything, along with warnings from node about loading files as ES modules.My typed client (same as in docs)
Import errors
Node warning: