vuejs-datepicker icon indicating copy to clipboard operation
vuejs-datepicker copied to clipboard

dist uses const and breaks compatibility with old browsers

Open rinu opened this issue 4 years ago • 10 comments

The dist version from the npm package is using const in version 1.6.2. I have downgraded to 1.5.4 for now to support older browsers. I hope the next release can be made compatible with old browsers such as Chrome 30.

rinu avatar Jul 25 '19 10:07 rinu

It happened to me too

eduardcotmrf avatar Aug 06 '19 08:08 eduardcotmrf

The same problem, which doesn't allow my app to start on Android 4.4.2

astanecki avatar Aug 29 '19 10:08 astanecki

Same issue here. It's common to not compile code in node_modules so please provide a ES5 build.

Trainmaster avatar Sep 18 '19 06:09 Trainmaster

I hit this today! Do not meant to +1 this but literally spent close to a day tracking it down. Impacts mobile safari 8 as well.

Downgraded to 1.5.4.

brandonburkett avatar Oct 08 '19 00:10 brandonburkett

There is (maybe) a way according to the docs to make the transpilation work for vue files. I'm unsure if this counts though, and I certainly couldn't get it to work (I had the same issue). Just putting this here in case A) it can work and B) someone smarter can leave a comment ;)

patrickdavey avatar Oct 26 '19 08:10 patrickdavey

I have the same problem.

I literally spend the whole day finding this problem.

Please don't put const in your dist.

djschilling avatar Nov 27 '19 19:11 djschilling

@brandonburkett we have the same issue with 1.5.4

seyfer avatar Dec 11 '19 13:12 seyfer

I use

"dependencies": {
  "vuejs-datepicker": "1.5.4"
}

resolve this problem.

SimoralX avatar Dec 30 '19 08:12 SimoralX

You can fix this by adding this to your vue.config.js

module.exports = {
    transpileDependencies: [
        'vuejs-datepicker',
    ]
}

brightonmike avatar May 05 '20 09:05 brightonmike

@brightonmike where do you put this config if you have just webpack config, not a Vue Cli SPA project?

@SimoralX is it something you add to package.json?

seyfer avatar May 12 '20 13:05 seyfer