On 2020/04/20 11:19:38, Sam Ruby <ru...@intertwingly.net> wrote: 
> 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?
> 

Well, who would've thought, I was running v10.16.3 :s
The 'problem' is solved and the 'Agenda' page of the board agenda runs fine.

This definitely is easy to run; installing Node.js LTS & yarn and you're good 
to go (centos 8).

Thanks Sam!

> 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/
> 

Reply via email to