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 'vue-clamp' #43

Open
nc-csl opened this issue Oct 28, 2020 · 1 comment
Open

Could not find a declaration file for module 'vue-clamp' #43

nc-csl opened this issue Oct 28, 2020 · 1 comment

Comments

@nc-csl
Copy link

nc-csl commented Oct 28, 2020

I get this error when trying to import (import VClamp from 'vue-clamp';)

TS7016: Could not find a declaration file for module 'vue-clamp'. 'C:/Users/csl/Documents/Arbejde/ERST/erst/virksomhedsguiden/frontend-components/node_modules/vue-clamp/dist/vue-clamp.js' implicitly has an 'any' type.   Try npm install @types/vue-clamp if it exists or add a new declaration (.d.ts) file containing declare module 'vue-clamp';

I have added transpileDependencies: ['vue-clamp', 'resize-detector'] to my vue.config.js.

@nbrylevv
Copy link

@nc-csl just add next line to your declare.d.ts

declare module 'vue-clamp';

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