question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue-instantsearch not compatible with vue-cli 3? Could not find a declaration file for module 'vue-instantsearch'.

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:16 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
nolawillcommented, May 3, 2018

Confirmed. 👏🏼👏🏼👏🏼 No more declaration error. Thanks for the fix!

2reactions
Haroenvcommented, May 3, 2018

Made it work, feel free to get back if that didn’t do it https://github.com/nolawill/vue-ais-typescript/pull/1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found