Closed AmasaDelano closed 3 years ago
Describe the bug
I can't install this plugin.
To Reproduce
I included vue-input-facade like this in my code:
vue-input-facade
var inputFacade = require("vue-input-facade"); var app = Vue.createApp({ ... }); app.use(inputFacade);
When I run that, I get the following message in the browser's dev console:
[Vue warn]: A plugin must either be a function or an object with an "install" function.
These are my package.json dependencies:
package.json
"dependencies": { "jasmine": "^3.6.1", "jslint": "^0.12.1", "vue": "^3.0.5", "vue-input-facade": "^1.3.2", "webpack": "^4.44.1", "yaml": "^1.10.0", "yaml-import-loader": "^1.3.6" }
Is this something I'm doing wrong on my end? Or is this is an issue with vue-input-facade?
Thanks!
Looks like you are using common js for your module. Depending on your transpiler you may need to access the default export manually. If you use es6 modules you won’t have that issue.
Describe the bug
I can't install this plugin.
To Reproduce
I included
vue-input-facade
like this in my code:When I run that, I get the following message in the browser's dev console:
[Vue warn]: A plugin must either be a function or an object with an "install" function.
These are my
package.json
dependencies:Is this something I'm doing wrong on my end? Or is this is an issue with
vue-input-facade
?Thanks!