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

No types to TypeScript #73

Open
spokospace opened this issue Dec 23, 2020 · 2 comments
Open

No types to TypeScript #73

spokospace opened this issue Dec 23, 2020 · 2 comments

Comments

@spokospace
Copy link

When I try to import it, I have error Cannot resolve definitions for module 'vue-product-zoomer'

@alandedica
Copy link

@spokospace if you just want to supress the TS warning, you can declare a fake module in a d.ts file

declare module 'vue-product-zoomer'

@paxcodes
Copy link

It would be nice to have types supported out-of-the-box.

Getting this error in VS Code,

Could not find a declaration file for module 'vue-product-zoomer'. '/path/node_modules/vue-product-zoomer/dist/assets/js/app.bundle.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/vue-product-zoomer` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue-product-zoomer';`ts(7016)

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