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

syntax error on BasicInput when running tests #52

Closed
EstebanMDQ opened this issue Jun 7, 2017 · 2 comments
Closed

syntax error on BasicInput when running tests #52

EstebanMDQ opened this issue Jun 7, 2017 · 2 comments

Comments

@EstebanMDQ
Copy link

I'm using vue-bulma-datepicker on a project and I'm getting this error when running unit tests

    PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
      SyntaxError: Unexpected token ')'
      at webpack:///~/vue-bulma-datepicker/src/BasicInput.js:9:0 <- index.js:8795

the only way I managed to fix it is by changing the following on BasicInput.js

    inputClass: {
      type: Object,
      // default: () => ({})
      default: function () {
        return {}
      }
    },

I'm not sure if this is an error on the package or some miss-configuration on my babel settings.

@EstebanMDQ
Copy link
Author

after I open this issue I realised that this is related to #27 . the solution proposed there avoids this issue.
so I'm closing this one.

@luventa
Copy link
Member

luventa commented Jun 8, 2017

thanks.

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