On Mon, Apr 20, 2020 at 3:23 AM Roy Lenferink <rlenfer...@apache.org> wrote: > > Hi Sam, > > I was trying to run the nodejs board agenda however it fails to show the > board agenda. > I am running on CentOS 8 with yarn installed (yarn version 1.22.4). > > Running 'yarn dev' returns 'Starting the development server..., Compiled > successfully! & You can > now view node-agenda-app in the browser.'. > > Viewing the board agenda page from the browser the React icon is spinning > with the 'Fetching board > agenda...' text (it did ask to sign in as asf user). The 'Fetching board > agenda...' text doesn't change. > > My terminal shows the following error: > [server] (node:27396) ExperimentalWarning: The fs.promises API is experimental > [server] TypeError: agenda.matchAll(...) is not a function or its return > value is not iterable > [server] at _default > (/mnt/projects/asf/whimsy/whimsy-board-agenda-nodejs/src/server/sources/agenda/front.js:11:2 > [server] at parse > (/mnt/projects/asf/whimsy/whimsy-board-agenda-nodejs/src/server/sources/agenda.js:34:5) > > The board agenda files are successfully checked out to > work/svn/foundation_board/ > Is this something you recognize?
What version of node.js are you running? String.matchAll is a new JavaScript feature[1]. Options: we can establish a minimum version of Node.js, I can avoid newish features, or we can use polyfills[2] for such functions. > Roy P.S. Node.js version 14 is scheduled for tomorrow[3]. It is a long-term-support release. [1] https://www.strictmode.io/articles/whats-new-es2020/ [2] https://www.npmjs.com/package/string.prototype.matchall [3] https://nodejs.org/en/about/releases/