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.

Cannot find module './Autosuggest.vue'

See original GitHub issue

Hi!

I have some problem when try to include with the gulp and the browserify.

Error: Cannot find module './Autosuggest.vue' from '/var/www/withpassion/docker-projects/wesele123.local/html/node_modules/vue-autosuggest/dist'
    at /var/www/withpassion/docker-projects/wesele123.local/html/node_modules/browser-resolve/node_modules/resolve/lib/async.js:55:21
    at load (/var/www/withpassion/docker-projects/wesele123.local/html/node_modules/browser-resolve/node_modules/resolve/lib/async.js:69:43)
    at onex (/var/www/withpassion/docker-projects/wesele123.local/html/node_modules/browser-resolve/node_modules/resolve/lib/async.js:92:31)
    at /var/www/withpassion/docker-projects/wesele123.local/html/node_modules/browser-resolve/node_modules/resolve/lib/async.js:22:47
    at FSReqWrap.oncomplete (fs.js:123:15)

Process finished with exit code 1

My run code import VueAutosuggest from 'vue-autosuggest'

Any idea?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
darrenjenningscommented, Dec 4, 2017

VueAutosuggest is a plugin, so you will need to case Vue.use() to load it in your app so it can be used.

Example:

import Vue from 'vue'
import App from './App.vue'
import VueAutosuggest from 'vue-autosuggest';

Vue.use(VueAutosuggest);

new Vue({ // eslint-disable-line no-new
  el: '#app',
  render: (h) => h(App)
})

I’ll update the README.md to make this more clear.

0reactions
trochocommented, Dec 4, 2017

Yes. Good idea!

Thanks for help

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue-autosuggest - npm
Vue autosuggest component.. Latest version: 2.2.0, last published: 3 years ago. Start using vue-autosuggest in your project by running `npm ...
Read more >
Could not find a declaration file for module 'vue-xxx'
I have tried 'vue-treeselect', 'vue-select', 'vue-multiselect' with more or less the same result (* those libraries don't allow import ...
Read more >
Frequently asked questions — Vuetify
Error : Cannot find module 'node-sass'. Ensure that your @vue/cli-* packages located in package.json are at least ^3.5.0.
Read more >
vue-autosuggest | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >
error: cannot find module 'vue' - You.com | The AI Search ...
If not and you want to use the module from any directory, you need to install it globally using npm install -g. I...
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