Haixing-Hu / vue-select

A Vue.js component implementing the select control with the jQuery select2 plugin.
http://haixing-hu.github.io/vue-select/
MIT License
133 stars 30 forks source link

TypeError: Path must be a string. Received [ 'src/vue-select.js' ] #6

Closed pbelyaev closed 8 years ago

pbelyaev commented 8 years ago
path.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^

TypeError: Path must be a string. Received [ 'src/vue-select.js' ]
    at assertPath (path.js:7:11)
    at Object.resolve (path.js:1146:7)
    at /Users/.../node_modules/resolve/lib/async.js:151:37
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)

Using in my component like this:

components: {
    'vue-select': require('vue-select2')
},
Haixing-Hu commented 8 years ago

The bug has been fixed.