Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setDefaults is not defined when passing options #2

Closed
hvaughan3 opened this issue Jul 27, 2018 · 3 comments
Closed

setDefaults is not defined when passing options #2

hvaughan3 opened this issue Jul 27, 2018 · 3 comments

Comments

@hvaughan3
Copy link

hvaughan3 commented Jul 27, 2018

Attempting to pass options when adding the plugin to the global Vue instance produces the following exceptions:

Uncaught ReferenceError: setDefaults is not defined
    at Object.install (vue-clampy.js?6bc5:374)
    at Function.Vue.use (vue.esm.js?efeb:4751)
    at eval (main.js?3479:46)
    at Object../src/main.js (app.js:10469)
    at __webpack_require__ (app.js:679)
    at fn (app.js:89)
    at Object.1 (app.js:10750)
    at __webpack_require__ (app.js:679)
    at app.js:725
    at app.js:728

Code:

import clampy from '@clampy-js/vue-clampy'

Vue.use(clampy, {
  truncationChar: ' '
})

Looking at the code, there is indeed setDefaults method call but I do not see a setDefaults method defined anywhere.

@alexandremoore
Copy link
Contributor

@hvaughan3 , can you try with 1.0.2?

@alexandremoore
Copy link
Contributor

@hvaughan3, this is now fixed in 1.0.4. Feel free to reopen the issue if necessary.

@hvaughan3
Copy link
Author

hvaughan3 commented Aug 9, 2018

Very sorry for the delay. Just tried it out and it does not crash but I do not see the options actually taking effect when passing them through the Vue.use() line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants