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

Could not find a declaration file for module #60

Open
thvroyal opened this issue May 30, 2024 · 0 comments
Open

Could not find a declaration file for module #60

thvroyal opened this issue May 30, 2024 · 0 comments

Comments

@thvroyal
Copy link

Describe the bug
When installing in the Typescript project, I encountered the following issue:
Could not find a declaration file for module '@alisaitteke/seatmap-canvas'.

To Reproduce
Steps to reproduce the behavior:

  1. Install this lib through yarn
  2. Import SeatMapCanvas in the typescript file

Expected behavior
The module has a properly declared file

Screenshots
image

Additional context
I tried to find the root cause, then I saw you declare the types field in package.json: "types": "dist/index.d.ts",. But in the node_modules when I install the module, the path of the declaration file is dist/type.d.ts as below:

image

So we need to correct this path, if you agree, I can create the PR to resolve it.

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

No branches or pull requests

1 participant