datepicker icon indicating copy to clipboard operation
datepicker copied to clipboard

Unit tests failing after updating to v1.3.0

Open adambiggs opened this issue 7 years ago • 2 comments

I still need to investigate the cause, but after updating to v1.3.0 my unit tests are now failing:

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

My project was set up using Vue Webpack template.

adambiggs avatar Mar 08 '17 18:03 adambiggs

I was able to fix this by telling Webpack to run vue-bulma-datepicker through babel-loader.

      {
        test: /\.js$/,
        loader: 'babel-loader',
        include: [
          resolve('src'),
          resolve('test'),
          resolve('node_modules/vue-click-outside'),
          resolve('node_modules/vue-bulma-datepicker') // Adding this fixed the errors
        ]
      }

To make this library easier to use, it might be nice to add a dist/ directory with pre-compiled files that can be used without any extra steps.

adambiggs avatar Mar 08 '17 19:03 adambiggs

Yes, will do. Unpackaged vue file is not convenient.

luventa avatar Mar 09 '17 00:03 luventa