Closed mkasprz closed 3 years ago
Yes, that's the optional chaining operator that landed in node 14: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
It looks like you're using webpack. You may have to use babel then. Otherwise simple-caldav@0.7.1 doesn't require node >= 14.
Another option to solving this problem is that we embed an esbuild process that is targeting es6 browsers
Ok, thank You. I generally have used Babel before I believe, as I had @vue/cli-plugin-babel
installed, but I've found out that by default dependencies are not transpiled. I had to include the following in my vue.conf.js
.
module.exports = {
// ...
transpileDependencies: [
'simple-caldav'
]
}
The other solution You proposed it seems reasonable to me too, if I understood it correctly. Thanks.
OK great! Feel free to close of your problem was resolved.
I installed the version 0.8 with
npm install simple-caldav@0.8
successfully, but while building a project an error occurred:It seems like
?.
causes the issue (as far as I know it's not available in pure JS yet, I may be wrong though). Even after fixing the issue above, another one appears:I found two more places with
?.
.Is there something more I should install or setup, or it just needs to be changed in the code?