Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object.hasOwn is not a function #22

Open
toniengelhardt opened this issue Mar 19, 2023 · 4 comments
Open

Object.hasOwn is not a function #22

toniengelhardt opened this issue Mar 19, 2023 · 4 comments

Comments

@toniengelhardt
Copy link

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

@razorness
Copy link
Owner

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.

@toniengelhardt
Copy link
Author

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

@razorness
Copy link
Owner

razorness commented Mar 20, 2023

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.

@toniengelhardt
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants