vuejs-datepicker
vuejs-datepicker copied to clipboard
dist uses const and breaks compatibility with old browsers
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.
It happened to me too
The same problem, which doesn't allow my app to start on Android 4.4.2
Same issue here. It's common to not compile code in node_modules
so please provide a ES5 build.
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.
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 ;)
I have the same problem.
I literally spend the whole day finding this problem.
Please don't put const in your dist.
@brandonburkett we have the same issue with 1.5.4
I use
"dependencies": {
"vuejs-datepicker": "1.5.4"
}
resolve this problem.
You can fix this by adding this to your vue.config.js
module.exports = {
transpileDependencies: [
'vuejs-datepicker',
]
}
@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
?