vue3-calendar-heatmap icon indicating copy to clipboard operation
vue3-calendar-heatmap copied to clipboard

Object.hasOwn is not a function

Open toniengelhardt opened this issue 1 year ago • 4 comments

I'm getting a lot of these errors in my production app, but cannot reproduce locally.

Maybe the stack trace rings a bell?

Screenshot 2023-03-19 at 18 05 18

toniengelhardt avatar Mar 19 '23 18:03 toniengelhardt

What browser/node version are you using?

Take a look at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn

Looks like you need at least Nodejs v16. Current LTS is v18.

razorness avatar Mar 19 '23 18:03 razorness

Using v16.11.1 on Digital Ocean setup, will try to upgrade to v18 and report back.

toniengelhardt avatar Mar 19 '23 18:03 toniengelhardt

I guess, this error came from tippy.js. I published a new version and moved tippy.js to peer dependency. Now you should have more control about bundling and its target.

razorness avatar Mar 20 '23 21:03 razorness

I upgraded and added tippy 6.3.7 to my deps, now getting this:

Screenshot 2023-03-28 at 18 57 04

It's a dependency of tippy. Seems similar to the first issue, maybe some props are not passed correctly?

toniengelhardt avatar Mar 28 '23 18:03 toniengelhardt