-
Notifications
You must be signed in to change notification settings - Fork 28
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
Cannot find module '@adminjs/prisma' or its corresponding type declarations.ts(2307) #37
Comments
Hello! |
Same issue here |
I have the same problems and I tried using different versions of @adminjs/prisma. |
Did you try importing without Try to do the imports similar to example app: https://github.com/SoftwareBrothers/adminjs-prisma/blob/main/example-app/src/index.ts |
Yes, @dziraf. Same problem. Not sure if important, but I'm using Ubuntu 22 with WSL2, Windows 11. |
can you share |
I was actually trying to append AdminJS in an existing project, but after seeing the same problem, I created a new project from scratch with just the default package.json and following the basic Getting Started section on AdminJS's website. So this is the current package.json:
|
Yeah, seems to be a general problem for me, too. In different projects. |
Looks like you might need:
in your |
Thanks for the advice! Unfortunately, I can't add those changes to my project. For now, I'm using ts-ignore comments to suppress the AdminJS errors. If problems persist, I might roll back AdminJS or consider alternatives as a last resort. Thank you for your help! |
This fixed the issue, thanks! |
Hello, still got the same issue here, |
same issue tried different tsconfig.json configurations but same issue persists. |
issue is still relevant( |
Hello, i fixed this issue. Edit: instead of |
Let me know if anyone needs help regarding this issue |
While doing this, why is it needed to import a ts file with .js extension? |
The text was updated successfully, but these errors were encountered: