carbon-design-system / stylelint-plugin-carbon-tokens

Apache License 2.0
9 stars 3 forks source link

TypeError: Object.hasOwn is not a function when running git commit #89

Closed AlexanderMelox closed 1 year ago

AlexanderMelox commented 1 year ago

Reference issue: https://github.com/carbon-design-system/ibm-cloud-cognitive/issues/2384

lee-chase commented 1 year ago

LTS for node is now 18, 16 was switched to maintenance recently https://github.com/nodejs/release#release-schedule

Node 14 is still in maintenance until April 2023.

Could change the built to target 2021. Object.hasOwn is a 2022 feature, but implemented nearly everywhere now.

http://kangax.github.io/compat-table/es2016plus/