Skip to content

Creating view failing with "Expression does not eval to a function. " error #2933

Answered by wohali
oraclevet asked this question in Q&A
Discussion options

You must be logged in to vote

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 using myfn() in your foreach statements.

Be sure to mark this answer as accepted if it resolves your issue!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wohali
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2933 on June 08, 2020 23:44.