HumanSignal / HumanSignal/label-studio

Can't see .d.ts files after building editor

Open
#7,529 3 comments 0 reactions 0 assignees View on GitHub
community_reviewed
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

I've a React project that uses Nx and TypeScript, where I want to use Label Studio editor inside it.

One of the options that I decided to try is to build libs/editor, then host it on npm registry and include it as a package in my application.

But the issue each time I try to build the editor, it succeed,s but the built files don't contain d.ts files related to types.

Image

So after publishing and trying to use the package in my app, it always fails as it doesn't see any types exist for the editor.

This is the sort of errors that I get when I try to use the built editor,

Image

Any idea how to emit the types files while building the editor, or if there's a better approach to include the editor inside my mono repo, would be much appreciated.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.