I created an OSDK out of my ontology, and I want to do a simple hello-world
Steps followed:
npm init -y
npm i typescript
npx tsc --init
However, after copy pasting the example documentation in Developer Console, I get: No "exports" main defined in [...]@osdk/client/package.json.
Is there something I’m doing wrong ? What configuration changes do I need to perform so that OSDK v2 is working for a simple hello world following the docs provided ?
I am guessing this has to do with you tsconfig file. Try bootstrap the app based on the @osdk/create-app command in Dev console and compare your config.
Hi, I am experiencing the same error. My bootstrapped app works fine, but I need to integrate OSDK with an already existing typescript app. I have commonjs module in tsconfig. How should I change tsconfig to fix the error? An example code would also help. Maybe, import is different?
Express is just a library for doing web-server stuff in nodejs so the basic config should be fine assuming you are using the latest ts version and basic config but we will get you an answer shortly.