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 #686

Closed
andreiwow2 opened this issue Jul 26, 2024 · 3 comments
Closed

Could not find a declaration file for module #686

andreiwow2 opened this issue Jul 26, 2024 · 3 comments

Comments

@andreiwow2
Copy link

Describe the bug
I get Could not find a declaration file for module for this package, I'm not sure what I am doing wrong or why the types aren't being installed..

To Reproduce
Steps to reproduce the behavior:

Install the package in a project that uses pnpm or npm, tried with both.

Expected behavior
Should correctly find the package types

Your environment

Software Version(s)
craft.js ^0.2.9
React ^18
TypeScript ^5
Browser
npm/Yarn [email protected]
Operating System windows 11
@qingzhoufeihu
Copy link

qingzhoufeihu commented Jul 26, 2024

Don't worry bro, try to restart your vscode or restart your ts engine in your vscode 😁

@andreiwow2
Copy link
Author

Don't worry bro, try to restart your vscode or restart your ts engine in your vscode 😁

I don't think that is the root of my issue, I tried to reload my VSCode and the error is still there, also, looking at the craftjs folder in my node_modules, I can't find any types or lib folder

image

And based on the package.json of craft, it should be at `/lib/index.d.ts

@prevwong
Copy link
Owner

My bad! Updated package.json and accidentally omitted the typings folder. Fixed in 0.2.10 (#687)

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

3 participants