Closed ecb34 closed 2 years ago
Object.fromEntries
is supported by node 12 and up, and node 10 and below are past their end of life. Recommend you update to a supported version of Node.js.
(Let me know if you're seeing this with a supported version of Node.js. Another solution could be to use babel-node
if you can't update to Node.js 12.x+.)
in my local I have node v12.13.0 and in my server I have the version v12.21 and the error is present..
This test program works for me in node 12. I don't see how Object.fromEntries could become undefined in that code, which is the only other way this could happen. Perhaps add console.log(process.version)
at that line to check just before the error what is really being used?
console.log(Object.fromEntries([[ 'key', 'value' ]]));
sorry, my debugger was using an older version from node, that was the problem
No worries!
On Wed, Dec 1, 2021 at 2:23 PM Eduardo Correal @.***> wrote:
sorry, my debugger was using an older version from node, that was the problem
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/apostrophecms/apostrophe-workflow/issues/352#issuecomment-983980885, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAH27NI73JMCFCL2YCOBXTUOZYZTANCNFSM5JBYS3DA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
--
THOMAS BOUTELL | CHIEF TECHNOLOGY OFFICER APOSTROPHECMS | apostrophecms.com | he/him/his
To Reproduce
Step by step instructions to reproduce the behavior:
Details
The error is in the line 206 of apostrophe-workflow/lib/routes.js I have tried it on two different projects and Im always having the same error, in pages and pieces
Screenshots