-
Creating a view(map-reduce) giving "Expression does not eval to a function. " error. DescriptionCreating a view. Steps to Reproducecode to create the view is as below, function (doc) { Expected Behaviourview created. Your Environment{"couchdb":"Welcome","version":"3.1.0","git_sha":"ff0feea20","uuid":"b401bbbf089d0d3452eaad6afc60a8f5","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
Additional Context |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Ubuntu 18.04 is built against SpiderMonkey 1.8.5, meaning you cannot use the arrow anonymous function declarations that you're using. We are unable to supply SpiderMonkey 60 or 68 for Ubuntu 18.04 at this time. To keep your arrow-function anonymous syntax, you would need to move to Debian Buster, Ubuntu 20.04, or CentOS 8, or use our Docker image, which is based on Debian Buster. You can also just rewrite your function using a Be sure to mark this answer as accepted if it resolves your issue! |
Beta Was this translation helpful? Give feedback.
-
Thank you @wohali - i will guide @oraclevet through this. We had a hard night on this.. 😄 |
Beta Was this translation helpful? Give feedback.
Ubuntu 18.04 is built against SpiderMonkey 1.8.5, meaning you cannot use the arrow anonymous function declarations that you're using. We are unable to supply SpiderMonkey 60 or 68 for Ubuntu 18.04 at this time.
To keep your arrow-function anonymous syntax, you would need to move to Debian Buster, Ubuntu 20.04, or CentOS 8, or use our Docker image, which is based on Debian Buster.
You can also just rewrite your function using a
let myfn = function() { ... };
syntax, then call that usingmyfn()
in yourforeach
statements.Be sure to mark this answer as accepted if it resolves your issue!