You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Install this lib through yarn
Import SeatMapCanvas in the typescript file
Expected behavior
The module has a properly declared file
Screenshots
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:
So we need to correct this path, if you agree, I can create the PR to resolve it.
The text was updated successfully, but these errors were encountered:
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:
yarn
SeatMapCanvas
in the typescript fileExpected behavior
The module has a properly declared file
Screenshots
![image](https://private-user-images.githubusercontent.com/52320573/335128195-48ef0f63-3e93-4907-82c3-3f0110bcedd7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3NjIxOTcsIm5iZiI6MTcyMDc2MTg5NywicGF0aCI6Ii81MjMyMDU3My8zMzUxMjgxOTUtNDhlZjBmNjMtM2U5My00OTA3LTgyYzMtM2YwMTEwYmNlZGQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEyVDA1MjQ1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1ZjUwZDAwN2YzYzE3ZWVhZTliNjA5ZWMzODkwNzQxMGQ3M2UzMDEwZDE2ZWE4NzZhZjRkNDZlZDM4ZTk5NjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.qEJIXJXjwVK0smci7Op1Z9SlKrPecXcgUV9UOtkbKnU)
Additional context
I tried to find the root cause, then I saw you declare the
types
field inpackage.json
:"types": "dist/index.d.ts",
. But in the node_modules when I install the module, the path of the declaration file isdist/type.d.ts
as below:So we need to correct this path, if you agree, I can create the PR to resolve it.
The text was updated successfully, but these errors were encountered: