Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@tus/azure-store is missing dist folder in distributed package leading to import issues #676

Closed
2 tasks done
fdebijl opened this issue Nov 20, 2024 · 0 comments · Fixed by #677
Closed
2 tasks done
Labels

Comments

@fdebijl
Copy link

fdebijl commented Nov 20, 2024

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Steps to reproduce

Unlike all the other subpackages, @tus/azure-store doesn't contain the dist dir (see https://www.npmjs.com/package/@tus/azure-store?activeTab=code for example), which leads to import issues, at least in Typescript projects, but probably also in vanilla JS. I've prepared a minimal reproducible example here: https://github.com/fdebijl/tus-repro

Expected behavior

Importing from @tus/azure-store should be possible without any errors. E.g.: import { AzureStore } from '@tus/azure-store';

Actual behavior

The Typescript compiler errors out with Cannot find module '@tus/azure-store' or its corresponding type declarations. when adding an import from @tus/azure-store. Importing from @tus/azure-store/src is possible, but obviously a bad practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant