question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Object.values is not a function

See original GitHub issue

hi, looking at the code of /usr/src/app/node_modules/react-static/lib/static.js:178:32

seems to have

  Object.values(route.initialProps).forEach(function (prop) {

and the engines package.json

"engines": {
    "node": ">=6.10.0"
}

but looks like Object.values is only available behind --harmony flag until node 7.
https://stackoverflow.com/a/40421941

thoughts? do i need a pollyfill?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rileylnapiercommented, Jan 9, 2018

or can we update the “engines” field to say you need node 7?

0reactions
tannerlinsleycommented, Jan 16, 2018

A new version has been published.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Object.values is not a function JavaScript
I obtain an array of countries. Now when I try to create an array from the values... var labels = Object.values(countries);.
Read more >
Error TypeError Object values is not a function - Edureka
I have seen that Object.values() is not supported in all browsers. But I am using the function in Node.js on server side -...
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
TypeError: object.map is not a function in JavaScript
The "object.map is not a function" error occurs because the map method is not implemented on objects. To iterate over an object, use...
Read more >
Uncaught TypeError: Object.values is not a function JavaScript
JavaScript : Uncaught TypeError: Object. values is not a function JavaScript [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found