# OSDK Generator v1.0.0 and up - Unable to Compile Typescript

**URL:** <https://community.palantir.com/t/osdk-generator-v1-0-0-and-up-unable-to-compile-typescript/1044>\
**Category:** Ask the Community\
**Tags:** osdk\
**Created:** [August 15, 2024, 6:38pm UTC](https://community.palantir.com/t/osdk-generator-v1-0-0-and-up-unable-to-compile-typescript/1044 "2024-08-15T18:38:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/adam/32/242_2.png) [@adam](https://community.palantir.com/u/adam)\
**Post date:** [August 15, 2024, 6:38pm UTC](https://community.palantir.com/t/osdk-generator-v1-0-0-and-up-unable-to-compile-typescript/1044/1 "2024-08-15T18:38:23Z")

</div>

We’ve been using OSDK for about a year now and love it. It fit seamlessly into our existing TS stack and compiled just fine.

Starting with OSDK Generator v1.0.0 and up, the generated TS code no longer passes our TS compiler in two places.

Here’s one example from `Ontology.d.ts`, located within the `/sdk` directory:

```auto
export interface Ontology extends ClientOntology<typeof Ontology> {
    objects: Objects;
    actions: Actions;
    /** @deprecated use batchActions */
    bulkActions: BulkActions;
    batchActions: BatchActions;
    queries: Queries;
}

```

The TS compiler throws the following error:

Interface ‘Ontology’ incorrectly extends interface ‘Ontology\<{ metadata: { ontologyRid: “ri.ontology.main.ontology.redacted”; ontologyApiName: “redacted”; userAgent: “typescript-sdk/0.16.0 typescript-sdk-generator/1.3.1”; }; objects: { …; }; actions: { …; }; queries: {}; }\>’.

This prevents our entire project from compiling. Excluding via tsconfig’s `exclude` directive does not work.

Has anyone seen this issue and been able to remedy? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ewitkon](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@ewitkon](https://community.palantir.com/u/ewitkon)\
**Post date:** [August 15, 2024, 7:39pm UTC](https://community.palantir.com/t/osdk-generator-v1-0-0-and-up-unable-to-compile-typescript/1044/2 "2024-08-15T19:39:47Z")

</div>

Thanks for your feedback and pinging us on the community!

version 1.0.0 is relatively and old version, can you please confirm when did you last generated the SDK and which version did you use?

You can get this information from the SDK version tab on the developer console application:

 ![image](https://canada1.discourse-cdn.com/palantir/original/2X/7/765e178976686956d6968b3dee62ebd277df2e86.png)

---

<div class="post-metadata">

**Author:** ![adam](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/adam/32/242_2.png) [@adam](https://community.palantir.com/u/adam)\
**Post date:** [August 15, 2024, 9:06pm UTC](https://community.palantir.com/t/osdk-generator-v1-0-0-and-up-unable-to-compile-typescript/1044/3 "2024-08-15T21:06:50Z")

</div>

> [@ewitkon](#):
>
> version 1.0.0 is relatively and old version, can you please confirm when did you last generated the SDK and which version did you use?

Hey there - good question. I can confirm the compilation issue is present in SDK generator versions 1.3.1, 1.1.4 , and 1.0.0.

And unrelated, but I’ll also add some TSconfig options we use that could influence this:

- `"module": "commonjs"` (doubt this would cause this)
- `"target": "es2021"` (doubt this would cause this)
- `"lib": ["es2021"]` (doubt this would cause this)
- Strict mode (likely a factor)

---

<div class="post-metadata">

**Author:** ![eanderson](https://avatars.discourse-cdn.com/v4/letter/e/5f9b8f/32.png) [@eanderson](https://community.palantir.com/u/eanderson)\
**Post date:** [August 16, 2024, 4:14pm UTC](https://community.palantir.com/t/osdk-generator-v1-0-0-and-up-unable-to-compile-typescript/1044/4 "2024-08-16T16:14:35Z")

</div>

Hey Adam,

Would it be possible for you to post a minimal repro on github.com? I don’t see this in my local build and don’t have quite enough information from your post. Another option would be to do a screen share.

---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [January 25, 2025, 7:14am UTC](https://community.palantir.com/t/osdk-generator-v1-0-0-and-up-unable-to-compile-typescript/1044/5 "2025-01-25T07:14:07Z")

</div>

Automatically bumped on January 25, 2025, 7:14am UTC



---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [July 24, 2025, 11:38am UTC](https://community.palantir.com/t/osdk-generator-v1-0-0-and-up-unable-to-compile-typescript/1044/6 "2025-07-24T11:38:53Z")

</div>

Automatically bumped on July 24, 2025, 11:38am UTC



---

<div class="post-metadata">

**Author:** ![system](https://yyz1.discourse-cdn.com/palantir/user_avatar/community.palantir.com/system/32/3_2.png) [@system](https://community.palantir.com/u/system)\
**Post date:** [October 27, 2026, 8:43pm UTC](https://community.palantir.com/t/osdk-generator-v1-0-0-and-up-unable-to-compile-typescript/1044/7 "2026-10-27T20:43:13Z")

</div>

Automatically bumped on October 27, 2026, 8:43pm UTC


