Object.values is not a function
See original GitHub issuehi, 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:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
or can we update the “engines” field to say you need node 7?
A new version has been published.