I recently started following this very small sample guide to try out a new framework, and it just doesn't build. I get the following error when I try to execute npx ts-node index.js:
Module '"@axonflow/sdk"' has no exported member 'AxonFlowClient'. Did you mean to use 'import AxonFlowClient from "@axonflow/sdk"' instead?
1 import { AxonFlowClient } from '@axonflow/sdk';
~~~~~~~~~~~~~~
If I take the suggestion, I instead get this:
/Users/gzak/.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
index.ts:7:3 - error TS2353: Object literal may only specify known properties, and 'organizationId' does not exist in type 'AxonFlowConfig'.
7 organizationId: process.env.AXONFLOW_ORG_ID || 'my-org',
~~~~~~~~~~~~~~
index.ts:16:35 - error TS2339: Property 'executeQuery' does not exist on type 'AxonFlow'.
16 const response = await client.executeQuery({
~~~~~~~~~~~~
Node, npm, and TypeScript were all installed fresh on my laptop just before following this guide, and I followed the commands in the guide up to npx ts-node index.js verbatim.