vue-instantsearch not compatible with vue-cli 3? Could not find a declaration file for module 'vue-instantsearch'.
See original GitHub issueI was able to run npm install --save vue-instantsearch
successfully, but when starting the server, I get the following error:
ERROR in /data/src/main.ts Could not find a declaration file for module 'vue-instantsearch'. '/data/node_modules/vue-instantsearch/dist/vue-instantsearch.common.js' implicitly has an 'any' type. Try 'npm install @types/vue-instantsearch' if it exists or add a new declaration (.d.ts) file containing 'declare module 'vue-instantsearch';'
As suggested, when I try npm install @types/vue-instantsearch
, I get:
npm install @types/vue-instantsearch npm ERR! code E404 npm ERR! 404 Not Found: @types/vue-instantsearch@latest
I am using the new vue-cli 3, could this be a compatibility issue with this component?
Issue Analytics
- State:
- Created 5 years ago
- Comments:16 (7 by maintainers)
Top Results From Across the Web
Could not find a declaration file for module 'vue-xxx'
This error occured because of vue-xxxxxx has been generated in JavaScript. Method 1: To avoid the issue I just replace it by the...
Read more >Open Q&A - Algolia Community
js, VS Code is giving me this message: Could not find a declaration file for module 'instantsearch.js/es/widgets'. '/Users/NAME/Documents/Web/ ...
Read more >Could not find a declaration file for module - Vue Forum
Hello Experts, Every time I install third-party package using npm. And import it to my component. Get this error "Could not find a ......
Read more >Could not find declaration file for module 'X' Error | bobbyhadz
If the error persists, the third-party module you are importing might not provide typings, which means that you need to declare the module...
Read more >A curated list of awesome things related to Vue.js
Includes fully featured user-authentication components, CRUD actions for the user's notes, and Vuex store modules. Vuejs Shopping Cart - ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Confirmed. 👏🏼👏🏼👏🏼 No more declaration error. Thanks for the fix!
Made it work, feel free to get back if that didn’t do it https://github.com/nolawill/vue-ais-typescript/pull/1