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

TypeScript typings #60

Open
karloci opened this issue Jun 26, 2023 · 1 comment
Open

TypeScript typings #60

karloci opened this issue Jun 26, 2023 · 1 comment

Comments

@karloci
Copy link

karloci commented Jun 26, 2023

Hello,
I have successfully installed the package in my InertiaJS/Vue/Typescript application and am using it.
But, after running the "npm run build" command, I get a message that there are no types for Typescript.

resources/js/Layouts/MainTemplate.vue:5:21 - error TS7016: Could not find a declaration file for module 'momentum-modal'. 'C:/Projects/neocrops/node_modules/momentum-modal/dist/momentum-modal.js' implicitly has an 'any' type.
There are types at 'C:/Projects/neocrops/node_modules/momentum-modal/dist/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'momentum-modal' library may need to update its package.json or typings.

Can you update the package or give me some advice?
Thanks in advance

@r0bbie
Copy link

r0bbie commented May 1, 2024

Would be great to have Typescript compatibility out the box also!

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

2 participants